Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.3
-
None
Description
I attached an example program which works correctly under Qt 5 and fails under Qt 6. On Qt 5, two windows, one entirely native X11, and one rendering inside a QWindow, display a red and a blue moving square. On Qt 6 the QWindow one does not display anything.
When
win.setFlags(win.flags() | Qt::WindowStaysOnTopHint);
is called, it seems that in Qt 6 the winId is invalidated - in this example it's not really problematic but it is much more when one has to pass the winId to an external API which does not support reloading it after the fact. For instance in my case the software allows to set whether the windows always stay on top as a user preference which can be changed mid-flight.
Attachments
Issue Links
- resulted from
-
QTBUG-69515 Linux, WindowStaysOnTopHint does not work.
- Closed