Executable files have an embedded version information which can be found by checking their properties. It includes version number, comments, company info etc. As developer you sometimes need to leave a scratch on the EXE files you are providing to your customers in order to track what you have and what your customers have.
Continue reading “Add version information to your executables and libraries in Qt”How to use Windows API in Qt (A simple example)
Qt is a cross-platform framework that encapsulates API across many Operating Systems but one always faces situations in which he/she needs to access and use OS specific capabilities. Windows API is a massive collection of interfaces that allow a programmer to use and include Windows features in their programs. Below is a simple example on how to use Windows API in Qt.
Let’s say we want to use GetSystemTime function in our Qt program. Searching Google for “GetSystemTime API” you’ll get the API Documentation from MSDN website. Parameters and return type values should be obvious:
How to get version number of an EXE file in Qt (Using Win32 API)
I use the function below to get the version of my Windows applications and show it on the title bar or about page programmatically. It uses Win32 API so it is not cross-platform.
Continue reading “How to get version number of an EXE file in Qt (Using Win32 API)”
OpenCV + Qt + Android, Adding Required Libraries and Includes
Another note to myself which I hope will be useful for others searching it.
Add the following lines to your PRO file in Qt, or create a PRI file using the following and include that in your PRO file.
Continue reading “OpenCV + Qt + Android, Adding Required Libraries and Includes”Qt 5.4.2 Static using MSVC2013
I was able to successfully build Qt 5.4.2 Static using Microsoft Visual C++ 2013 (MSVC2013)
It is almost the same as my post on Qt 5.4.0 Static using MSVC2010
Again, please keep in mind that these are NOT some exact steps and you can change the folders to another path that suits you.
Hürriyet Mobil Hackathon Winners
I participated in a hackathon hosted by Hürriyet (http://www.hurriyethackathon.com) along with my friends Erisn and Sinan. It lasted more than 48 hours, full of coding, designing and debugging. We were awarded as the third best project. There were 54 groups from all around Turkey with some really great ideas and projects. Our group was called T2K and our project was named Elizabeth. Below is the video we used for presentation at the finals. It’s also a description of the project. Continue reading “Hürriyet Mobil Hackathon Winners”
Extending your Qt Android application using JNI
Following slides contain valuable information on Qt, Android and JNI that were presented during Qt Developer Days 2014.
How to call a Java function using C++ (Qt) and how to call-back a C++ (Qt) function using Java are described here.
Extending your Qt Android application using JNI
They’re originally taken from http://www.qtdeveloperdays.com
My Qt Profile Link
A link to my Qt forums profile.
How to limit 32-bit applications to one instance in Visual C++ (with or without Qt)
I use the code from the following article to allow only a single instance of my programs (mostly written using Qt Framework) to run on Windows. Some programs (specially the ones which connect to a specific type of hardware or resource) need this limitation to avoid conflicts.
Please also note that this code is specific to Windows.
Build Qt-Static using MSVC2010
I keep the following notes (steps) as a personal guideline for building Qt Statically using Microsoft Visual C++ and I never fail to do it but please keep in mind that these are NOT some exact steps and they need to be changed (slightly though 🙂 ) in some cases. Leave comments if you have any questions.
I have used Qt 5.4.0 with Microsoft Visual C++ 2010 (MSVC2010) but it is more or less the same for similar compilers and others Qt versions.