I am writing a little program in C++ with Qt. I have a QGridLayout with 3*3 QWidget. In each QWidget, I have a QVBoxLayout. Within that QVBoxLayout I need to put a certain number of black and white rectangles.
For now, I use QWidgets for these rectangle and I apply a background-color to get the white and the black ones.
I saw in the documentation something about a Rectangle class that is linked with QtQuick and I don't really want to go into that.
Thanks for your answers,