Wednesday, April 5, 2017

Make the compiler fail if using deprecated Qt features

Instead of making the compiler warn you if using deprecated Qt features (see previous post), by using QT_DISABLE_DEPRECATED_BEFORE it's even possible to make your code fail to compile if you use deprecated APIs.

Make the compiler warn you of deprecated Qt features

QT_DEPRECATED_WARNINGS is a keyword that can be used in your Qt's project files (.pro) so qmake makes your compiler emit warnings if you use any feature of Qt which as been marked deprecated. The exact warnings depend on your compiler, but it'll be easy to spot any location in your source base that might be affected for any Qt's API changing soon.

Monday, April 3, 2017

Ever dreamt of creating your own QML controls?

Were you in need of a control not provided in the QML controls set? Have you wondered how difficult could such an enterprise be to write and use your own QML control to fit your needs? Do you feel like contributing any new QML control back to the community?

Friday, February 10, 2017

Assign radio buttons to QButtonGroup in Qt Designer

When you use the Qt designer to design your form, you can group buttons by selecting them and choosing "Assign to button group" then "New button group" from the context menu.

Qt Enumerations to String

Have you ever been in the need of showing a more meaningful message that just the value related to a particular Qt Enumeration? I'm talking especially about logging or debugging situations, were a sentence like "Dialog modality is Qt::WindowModal" would be far far better than "Dialog modality is 1" instead.

Monday, November 14, 2016

Qt on Android: how to extend and debug the Java part of your Qt application

If you develop Qt application for Android, and your applications make good use of Java code (to interface for Android native libraries for instance), it's very likely you run into the situacion of need for a good development environment of the Java side.

Qt Creator Google Test plugin

Are you already taking advantage of Google Test, Google's C++ test framework while developing applications with Qt?  Right. Aren't you? Well, you should. The good news is this plugin simplifies the integration within Qt Creator IDE.