I'm currently doing a map editor for a game I created, and I have a tiny problem with Qt. It's the first time I use it, but I love the challenge and I thought it would be a great experience.
I'm currently building my interface using Qt Designer and I'm stuck on the map part. Indeed, my map is composed of 2 layers : The terrain, and the units/obstacles/vegetation.
I'm using a QTableWidget to contain the terrain information, but now I would like to stack another QTableWidget above it, with the exact same size, so I can place my units, etc. However, I didn't find how to achieve this on Qt Designer. As soon as I create a new QTableWidget, it goes on the side of the first, not above it.
I thought about using the QStackedWidget, but since it only allows 1 Widget to be visible at a time, it doesn't fit my hope.
If someone has an idea, as tiny as it might be, I would be very thanksful.
Have a nice day everyone !
EDIT : By above, I don't mean aside... I know it's kinda hard to explain. If we consider that the Axis on which we look our screen is Z, I would like both tables to be : - Equivalent on the X Axis (same number of columns) - Equivalent on the Y Axis (same number of row) - Different on the Z Axis (one table is "deeper")