Category Archives: C++

propertypp: Objective-C-like properties for C++ classes

The short version: propertypp on GitHub The long version: A co-worker recently told me he had made some member variables in a C++ class public, because a getter and setter for them would just do exactly the same thing as … Continue reading

Posted in C++, English, Programming, Projects | 1 Comment

Drawing scalable pixels in the Qt Graphics View framework

Say you have a custom QGraphicsItem that you would like to draw pixel by pixel, and want it to appear pixelated when that item is scaled (or the QGraphicsView it is being displayed on, or whatever). At first, you might … Continue reading

Posted in C++, English, Programming, Qt | Leave a comment

Aligning text in QGraphicsTextItem

The Qt Graphics View Framework provides a rich set of resources to create applications with interactive graphics scenes that display arbitrary shapes, text and even Qt widgets. While the framework provides almost everything you need regarding interactivity, scene hierarchy management … Continue reading

Posted in C++, English, Programming, Qt, Tutorials | Leave a comment

Don’t forget that virtual

I am not really a C++ programmer. I usually code in C, and I think all C++ I’ve ever written involved a couple of vectors and maybe one or two classes. So what I’m writing here is certainly old news … Continue reading

Posted in C++, English, Programming | 1 Comment