Tuesday, April 30, 2013
For those of you developing and distributing desktop applications that target multiple platforms (i.e. Windows, Linux, Mac OS X) and struggling to have a common installer tool for such platforms, you may want to consider the Qt Framework Installer, the same installer Qt itself uses.
Thursday, April 25, 2013
If it happens that you were already relying on some of the Qt Solutions to develop/extend your own applications (I for instance currently use QtSingleApplication to allow the user to run just one instance of my application) and you're porting your application to Qt 5.x you may notice that the Qt Solution component(s) you're using must be also ported...
I think most of you are aware that existing applications developed for Qt 4.x must be ported to be used with Qt 5.x (if not, this is worth reading). The main visible changes to do to existing C++ code are:
add QT += widgets towards the end of the project file (.pro)
By making such changes your code now be built using Qt 5.x But wait a minute... By making such changes your code cannot be built using Qt 4.x anymore... If you want to be able to build your applications with each of Qt versions, here's a simple trick
- modify your C++ files (.h and/or .cpp) so
- #include <QtGui> changes into #include <QtWidgets>
Have you ever wonder if any of the variables you have defined in your project file (.pro) can be used in your C++ source code? The answer is yes, and the process is straightforward.
With the availability of Qt 5.1 Alpha we're ready to develop for both OS just now, since all the qtbase is already implemented. However, there are still a few limitations (parts of Multimedia aren't fully implemented and Qt Quick is not working under iOS yet).