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”

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 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 use VBScript in C++ (Using Qt)

In this article I’ll explain the process of combining C++ and VBScript codes together. There are many situations in which you find yourself in desperate need of some simple code that can handle what your program wants to do. An example that comes to my mind is using DDE Protocol in Windows. It can be heartbreaking to try and write a quick DDE handling program using C++. Well on the other hand it is extremely easy using VBScript. But I am not going to talk about DDE I this post. Search Google for “how to connect to DDE using VBScript” and combine that with what you learn from this post. So here it is:

Continue reading “How to use VBScript in C++ (Using Qt)”