Qt allows you to use Java code in your Android applications. This is the same code that Android Studio (or Eclipse etc.) users use when they are writing applications for Android. In Qt, by default, you are limited to C++ code and what the Qt modules have to offer (which in most cases are enough) but there are certain situations where you need to use something from Android API which is not provided in Qt. An obvious example for this can be using the default Android Galley to open a picture, or using Text-To-Speech engine or any other API that you can think of. If you don’t want to be limited to what is provided by Qt while writing Android apps then follow the steps below to be able to add Java code to your Qt project.
Continue reading “How To Mix C++ And Java Code (In Qt For Android)”My Google Developer Page
As of now my Google Developer page is also active. It can be called just a first draft anyway 🙂
You can reach it using the link below:
https://play.google.com/store/apps/dev?id=7993172462492044629
You can access all programs in my personal developer account from here. I’ll try to write more Android apps with Qt and OpenCV as soon as I get some more free time.
How to build OpenCV from source for VC14
OpenCV 2.4.11 users may have noticed that it does not provide pre-built binaries (Libs and DLLs) for VC14 (Visual Studio 2015) Unfortunately it is also the case with Qt 5.5.1 (At least it’s true at the time of writing this article) so if you are going to use either one of them you have to build it yourself.
I was also faced with this obstacle so I decided to write a guide for anyone who wishes to built OpenCV for VC14.To do that, just follow the steps below:
Image Transformer Website Up and Running
You can access Image Transformer website using this link.
From now on I’ll post all updates and announcements there.
You can still use CONTACT ME page on my personal website here to send your source-code requests.
Good luck!
How to enumerate installed Windows Media Codecs in Qt
To get a list of all available Windows Media Codecs in Qt you have no other choice but to use C++ interfaces from Windows Media Format SDK. In this post I am sharing an example source code which allows you to do that in Qt. If you are developing using Qt and MSVC compilers for Windows then you can definitely download this source code, build and run it for yourself.
Continue reading “How to enumerate installed Windows Media Codecs in Qt”How To Get Free Disk Space In C++ (Qt for Windows)
You can use the following Win32 API function to get the free disk space in C++. Note that this function can be used with Qt for Windows if you add the required dependencies described in this post.
Continue reading “How To Get Free Disk Space In C++ (Qt for Windows)”Download Template Project – Qt for Android (with OpenCV)
I start Qt for Android projects all the time and setting up all the required folders and including libraries can take some time, assuming that I don’t make any mistakes during the initialization of the project. Previously I had posted this about how to add OpenCV libraries to your Qt for Android project but it proved to be not enough and I also receive questions about how to create a correct project with OpenCV all the time.
Continue reading “Download Template Project – Qt for Android (with OpenCV)”
How to Sign Your APK in Qt
If you want to upload an Android application into your Google Play Developer account then you have to sign your apps. Pictures below explain how you can do this in Qt.
How to add Permissions to your Qt Android app
Whether you want to use GPS or Compass, Camera or the Internet, you will need to add permissions to your Qt app for Android because Android API uses a permission system for security reasons. It actually has other benefits such as helping with monitoring and app statistics and so on but I’m not going to discus that in this post.
If you need to add permissions to your Qt Android app then follow these steps.
Continue reading “How to add Permissions to your Qt Android app”How to set icon for Android app in Qt
When you create an Android app in Qt, the icon of your app remains the default set by Qt, it’s this one:

Usually you want to change it for a more meaningful icon. Follow the steps bellow to be able to change this icon in Qt.
Continue reading “How to set icon for Android app in Qt”