Solved Move QMainWindow on top of the other windows
-
Hi, I've some instances of QMainWindow.
Is possible using them to move a single QMainWindow on top of the other?
I'm searched a solution but I found nothing.Thanks.
Stefano
-
@Stefanoxjx
If it does what you want, Qt::WindowStaysOnTopHint is simple. -
Hi, I don't think that this can help me :(
I try to explain:
I've a menu with some QPushButton.
At each QPushButton a specific window (QMainwindow) is opened.
Each opened window goes above the others.
When I click a button already clicked (window already opened) I would need that corresponding window goes on top of all opened window.
So I would need a method similar to .show() that move window layer.
I hope I explained myself.
Thanks. -
@Stefanoxjx
I think you just need to callQWidget::activateWindow()
for that, and/or maybeQWidget::raise()
? -
QWidget::ActivateWindow() works fine.
Many thanks for help :)