Some time ago, I wrote a code to restart the running application on Android. You might well ask why such a thing was needed. It was needed because there are cases where, whenever a user changes the theme, the application has to restart to apply the change (it can’t be applied on the fly). In […]
How to Get the RSS Feed
Qt on Android: How to use Android Toast
To get you started on this, we’ll be using KDAB’s Android utils with the humble Toast. Toasts are small popups which are used to show the user some feedback. Check Google’s API guide for more info about toasts. The easiest way to show a toast is to use Toast.makeText(Context context, CharSequence text, int duration) static […]
Qt on Android: How to convert Qt images to Android Images and vice-versa
Sometimes we need to exchange images from Android world to Qt world and vice-versa, therefore in this article we’re going to see how to convert a QImage to an Android Bitmap and how to convert an Android bitmap and an Android Drawable into a QImage. To get access to Android Bitmap data & info we’re […]
Embedding QML: Why, Where, and How
If you’re already using QML in Qt, you know that it can help quickly create flexible user interfaces using little or no C++ programming. With a basic text file and some JavaScript logic, you can put together a pretty sophisticated interface like that shown in the Qt Quick Clock demo (below) with a minimum of […]