QtQuick Custom Item Performance

One can read here and there that OpenGL is the fastest. QQuickPaintedItem is slow. And Canvas is really slow. But I couldn't find any information on how fast or slow each solution is. So I decided to do a quick comparison, to get an idea of their performances. So I did a quick and simple rendering of many rectangles using each technology. And measured the frames per second.

Read More

Encapsulation in QML Components

In QML, it’s so easy to use properties of components directly, and it’s even the way most examples do it. But here’s my quesion: If we consider this the wrong approach in C++, isn’t it wrong in QML as well? …

Read More

Implementing tool tips in QML

If you are using the Qt Components, you have tool tips available. But with the standard SDK, you’re on your own. Here, I’ll implement a simple tool tip component for you. In my application, I have a lot of Text …

Read More

Custom positioners in QML

If none of the four standard positioners (Column, Row, Flow, Grid) work for you, you can write your own. I have a pet project that involves a poker table. This is done with a list model that has a list …

Read More