Solved Menu persistence
-
QT 5.12.5 on Fedora 30 x86-64
Am using the supplied menu bar from QMainWindow. As intended, my mouse movement causes a widget W (QLabel) to appear, even when accessing the menus. Unfortunately, when W is set to visible, the menu goes away. I have set W to not have focus (through both the window flags and setFocusPolicy).
What can I do so that the menu stays visible, even when W appears?
-
@SGaist Thanks for the offer of looking over a code sample. I have found that by setting W to be a Qt::Popup rather than a Qt::Window, this solves my problem.
-
Hi,
Can you share the code you use ?
-
@SGaist Thanks for the offer of looking over a code sample. I have found that by setting W to be a Qt::Popup rather than a Qt::Window, this solves my problem.