Date types are handled like a string in SQLite and below is an example of how to change the date format from MM/dd/yyyy to yyyy-MM-dd. With a little modification it can be used for other formats too. select substr(column, 7, 4)||”-“||substr(column, 1,2)||”-“||substr(column, 4,2) from table
Having many programs with Shell Overlay Icons in Windows will cause some of them to not appear. This is because there is a limit to how many Shell Overlay Icons. (Not sure but I think it’s around 10 icons) Below is an example of a Shell Overlay Icon. To overcome this problem you need to […]
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
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 […]
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 […]
Use the following lines in a .pri file that is added to your project by using “include(C:/opencv/opencv.pri)” This allows easy including of headers and library references in a Qt project. (Note that in case you are using another version of OpenCV, your library names might be different.)
This function can be used to get an EXE file version. I use this class in almost all of my programs to add EXE version to Main window title.
Class below allows catching of Exceptions in Qt. Paste all code below into a header and use this class instead of QApplication in your main function.