I'm back with yet another stupid newbie question.
My client wants the Qt app to be re-sizable, with the main window having two states. Each state has a series of buttons on top of a background image. The background image is different for each state.
I'm having difficulty creating this with Qt Designer, as it does not seem to like objects that overlap.
I have a QtStackedWidget with two pages. On each page, I tried using a large QLabel with a pixmap along with a set of QPushButtons. But I cannot seem to convince Qt Designer to group the buttons in a QLayout that is nested inside the label, which itself is in a layout inside the Stacked Widget's page.
Either Qt Designer's layout buttons are disabled, or it creates a layout containing the label and buttons in a grid pattern. I cannot seem to get the buttons to lie on top of the label.
I can arrange everything as desired if I avoid layouts, but of course then if you re-size the window the elements do not dynamically reposition themselves.
Is there another technique I should be using? Is there another way to get a background image in each page besides using a label?
Bookmarks