Q_FOREACH (or the alternative form, foreach) will be deprecated soon, probably in Qt 5.9. Starting with Qt 5.7, you can use the QT_NO_FOREACH define to make sure that your code does not depend on Q_FOREACH. You may have wondered what all the fuss is about. Why is there a continuous stream of commits going to into Qt […]
QtDevelopment Get the RSS Feed
for feeds to planetqt and planetkde
Qt on Android: How to restart your application
Some time ago, I wrote a code to restart the running application on Android. You might well ask why such a thing was needed. It was needed because there are cases where, whenever a user changes the theme, the application has to restart to apply the change (it can’t be applied on the fly). In […]
KDAB, Qt 3D and the Release of Qt 5.7
Some of you may know that Qt 3D is going strong almost entirely due to the work of the KDAB team, led by Dr. Sean Harmer and Paul Lemire. You can read all about its near demise and ultimate rescue here – it’s quite a story, and started with the release of Qt 4. Now […]
Very explicit operator bool Is the Safe Bool Idiom still useful in C++11 / C++14?
From time to time I scroll through Qt-related forums and mailing lists, and whenever possible I try to help fellow developers out. The other day a StackOverflow thread caught my attention: a developer was asking “What is the purpose of operator RestrictedBool in QScopedPointer?” Indeed, looking at QScopedPointer‘s implementation, one notices the strange RestrictedBool usage. […]
Faster than Fast String Search in Qt
Is your code burning a lot of cycles hunting for strings? Maybe you need to find the proper charset nestled in a chunk of HTML, or look for the dimensions in an XPM image file, or locate the email attachment boundaries in a block of MIME. If you string search a lot and performance is […]
QRegion will be iterable in Qt 5.8 - seamless integration with C++11 range-for
A novel solution to an old problem The QRegion class specifies a clip region for a painter. You can also query a QPaintEvent for the region() to limit the paint operations necessary in partial repaints. A region can be anything from a simple rectangle to a bitmap mask, but virtually all code that inspects a […]
Physically Based Rendering (PBR) in 10 minutes Understanding a new rendering model for realistic and consistent graphics
If you happened to be at the NVIDIA GTC conference last week, you may have seen a Qt demo we developed showing a Dodge Viper in the Toradex booth. If that Viper looked especially cool, that’s partially because it was displayed using Physically Based Rendering (PBR). Alright… what exactly is PBR, and can I use it in my […]
Windows Dressing The Abbreviated Guide to Running Qt on Embedded Windows
Microsoft Windows has a long history of embedded operating systems going back to 1996, branded as Windows Embedded Compact, Windows Embedded CE, Windows CE, Windows Compact, Windows Phone, Windows Runtime, and an assortment of others. One of these fine platforms might even form the basis of your embedded product. Trouble is, with the shiny new […]
KD Chart 2.6.0 released
KD Chart 2.6.0 is a maintenance release with a limited number of new features. This release publishes feature additions and bugfixes since KD Chart 2.5.1. KDAB continues to offer a commercial license without flat fee support for KD Chart. Features: – Code updated to compile with Qt 5.6 – Optional line breaking for horizontal legends […]
Embedding QML: Why, Where, and How
If you’re already using QML in Qt, you know that it can help quickly create flexible user interfaces using little or no C++ programming. With a basic text file and some JavaScript logic, you can put together a pretty sophisticated interface like that shown in the Qt Quick Clock demo (below) with a minimum of […]