Hi,
I want a widget to appear on a fixed position in my mainwindow when I push a button.
How can I fix the position to the left side of my mainwindow without using the Designer ?
Thanks for help !
Hi,
I want a widget to appear on a fixed position in my mainwindow when I push a button.
How can I fix the position to the left side of my mainwindow without using the Designer ?
Thanks for help !
Maybe using a QDockWindow and QMainWindow::addDockWidget with Qt::LeftDockWidgetArea?
Cheers,
_
ich (12th August 2014)
Or inserting/removing the widget at position 0 in a QHBoxLayout that holds the remaining content of the main window.
Or showing and absolutely positioning a widget (child of main window) on top of the content in the main window. Calling move(0,0) should get you most of the way.
Really depends on the effect you are trying to achieve.
Last edited by ChrisW67; 11th August 2014 at 21:05. Reason: updated contents
ich (12th August 2014)
Bookmarks