Painting

Laszlo Agocs

Let There Be Shapes!

Published Friday July 7th, 2017 | 11 Comments on Let There Be Shapes!
Posted in Declarative UI, Dev Loop, Graphics, OpenGL, Painting, Qt Quick, UI

One of the new features of the upcoming Qt 5.10 is the introduction of the shapes plugin to Qt Quick. This allows adding stroked and filled paths composed of lines, quadratic curves, cubic curves, and arcs into Qt Quick scenes. While this has always been possible to achieve via QQuickPaintedItem or the Canvas type, the […]

Read More
Laszlo Agocs

Boosting performance with shader binary caching in Qt 5.9

Published Thursday March 23rd, 2017 | 3 Comments on Boosting performance with shader binary caching in Qt 5.9
Posted in Dev Loop, Graphics, OpenGL, Painting, Qt Quick

Now that Qt 5.9 is getting closer, let’s take a look at a minor but immensely useful improvement to the basic OpenGL enablers that form the foundation of Qt Quick and the optional OpenGL-based rendering path of QPainter. Those looking at the documentation snapshots for 5.9 may have already come across some new functions in […]

Read More
Laszlo Agocs

OpenGL Core Profile Context support in QPainter

Published Friday January 27th, 2017 | 2 Comments on OpenGL Core Profile Context support in QPainter
Posted in C++, desktop, Dev Loop, Graphics, macOS, OpenGL, Painting, Qt, UI, Windows

As many of you may know, QPainter has a multi-backend architecture and has two main paint engine implementations under the hood in Qt 5: the raster paint engine and the OpenGL2 paint engine, designed for OpenGL ES 2.0. The GL Paint Engine While in many ways the raster paint engine can be considered one of […]

Read More
Laszlo Agocs

Inside QImage (with a touch of Qt Quick and OpenGL)

Published Friday January 20th, 2017 | 4 Comments on Inside QImage (with a touch of Qt Quick and OpenGL)
Posted in C++, Dev Loop, Graphics, OpenGL, Painting, Qt Quick | Tags: ,

QImage is the most common container for image data in Qt applications. Getting a QImage that contains the pixel data of an image loaded from a file is fairly self-explanatory: QImage img; img.load(“some_image.png”); This can then be used with QPainter, can be passed to widgets, and can also be utilized in Qt Quick scenes via […]

Read More
Laszlo Agocs

The Qt Quick Graphics Stack in Qt 5.8

Published Monday August 15th, 2016 | 14 Comments on The Qt Quick Graphics Stack in Qt 5.8
Posted in Declarative UI, Dev Loop, Embedded, Graphics, OpenGL, Painting, Qt, Qt Quick, Windows

This is a joint post with Andy. In this series of posts we are going to take a look at some of the upcoming features of Qt 5.8, focusing on Qt Quick. OpenGL… and nothing else? When Qt Quick 2 was made available with the release of Qt 5.0, it came with the limitation that […]

Read More

Text Rendering in the QML Scene Graph

Published Friday July 15th, 2011 | 26 Comments on Text Rendering in the QML Scene Graph
Posted in Graphics, OpenGL, Painting, Performance

Some time ago, Gunnar presented to you what the new QML Scene Graph is all about. As mentioned in that article, one of the new features is a new technique for text rendering based on distance field alpha testing. This technique allows us to leverage all the power of OpenGL and have text like we […]

Read More

QML Scene Graph in Master

Published Tuesday May 31st, 2011 | 80 Comments on QML Scene Graph in Master
Posted in OpenGL, Painting, Performance, Qt, Qt Quick

Earlier this week, we integrated the QML Scene Graph into qtdeclarative-staging.git#master. Grab the modularized Qt 5 repositories and start hacking! The primary way to make use of it is by running qmlscene or by instantiating a QSGView and feeding it your own .qml file. The import name has been upgraded to QtQuick 2.0, so upgrade […]

Read More

The convenient power of QML Scene Graph

Published Tuesday March 22nd, 2011 | 37 Comments on The convenient power of QML Scene Graph
Posted in OpenGL, Painting, Performance

QML on QGraphicsView is limited to only features that are fast enough and absolutely necessary to make nice UIs. Potentially slow features like composition modes, QPainterPaths, QGraphicsEffects and complex brushes are not supported. We have been trying to make it easy for you to create fast and responsive UIs, and hard to create sluggish ones. […]

Read More
Eskil Abrahamsen Blomfeldt

Hint, hint, nudge, nudge, say no more!

Published Monday March 14th, 2011 | 16 Comments on Hint, hint, nudge, nudge, say no more!
Posted in C++, KOffice, macOS, Painting, Qt, Windows

At the time of writing, the task with the most votes in Qt’s bug tracker is the somewhat vaguely named umbrella task “Allow better font rendering for projects like Koffice”. The background for the task is a lacking cross-platform support in Qt for text layouts done in the design metrics of the font. Depending on […]

Read More
Get started today with Qt Download now