Creating Custom Widgets

Creating custom widget is not a hard problem, but there are a few things you should consider. This is meant as a check-list you can go to, when you create a new widget. Just run through the list and you are well on your way to creating a good widget that will serve you well in many different circumstances.

Read More

Xml/Json Comparison

Recently I needed to implement a client application that would fetch data from a web service. The client had to be written in C++ using the Qt 5.4 libraries, the server was already running Apache2 with php 5.something but the …

Read More

QObject SignalBlocker

Sometimes you have to stop a class from emitting a signal for a while. One example that just came up on the Qt interest list was an application that modifies a file which it also monitors with a QFileSystemWatcher. You …

Read More

Using Templates to Avoid Code Duplication

The object orientation guys have pretty much won the battle. So much, that when something doesn’t fit in a neat OO inheritance tree, it can’t be done. I recently worked on a commercial project where I saw the following code …

Read More