Hello, I've just started learning QT recently for a school project and I am unsure about something.
This is what I have right now, but it is written in an unmaintainable and ugly way.
[image: 7fbf2fa6-a1fb-43a9-a1ce-fd14c9f23236.png]
For each widget in the grid layout, i want to show three things, tile texture : static and a character texture and healthbar (character is image, healthbar currently im using a qwidget with a linear gradient stylesheet, but that's not a good solution, both change place on every turn).
I am not asking how to handle the changes, but how to actually draw them on the QWidget. Is the best solution creating three QLabels, setting a pixmap to each, and setting QTile as their parent? I have tried using QPainter but it seems that for that I have to change the paintEvent function? I am not looking for the actual code but just directions.
Thanks