To put it other way around, why wouldn't you use layout management?
To put it other way around, why wouldn't you use layout management?
J-P Nurmi
Thanks for the reply!
I am running into some problems using layout management. I have attached a picture for reference. I display a PCB image in a Qlabel, and have added six other Qlabel objects in the foreground. I used Qlabel->setPixmap to draw the blue rectangles on top of the background, and I want the six rectangles to be able to change their properties, such as color, at a fixed rate which will inidicate the card’s status. I’ve had some trouble using layout management to arrange my widgets like this. Is it possible to arrange my widgets like that using layout management, or is there some other way to implement what I have specified?
Any suggestions would be appreciated!
I'd implement it as a single custom widget, but you can also create a custom layout or reimplement resizeEvent() for your widget and move the items around yourself using QWidget::setGeometry(). It should be also achievable using a grid layout with spacers.
Bookmarks