Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.2.0, 5.2.1, 5.3.0
-
None
-
Windows 7 x64
MSVC 2010, 2012
Qt 5.2.x, 5.3.0
-
cf0ea18ac41c71418e84840d4933b126f0bf6b0a (qtbase/5.12, 21.8.2018, 5.12)
Description
See attachment for minimal example. Application contains two tabs widgets and opengl.
Play with macros USE_MAINWINDOW, USE_FULLSCREEN, and USE_OPENGL.
In order to see the expected behaviour comment USE_MAINWINDOW macro out.
On widgets tab press button Say Hello!. You should be viewing Hello! text inside central label. Prior to pressing the button, it should be highlighted.
Now enable USE_MAINWINDOW macro back. Using Qt 5.3 you should see the window, but when you hover button it is not highlighted. Press it, no text appears. Now switch to opengl tab and back. At this point, you should be able to see Hello! text. Regarding Qt 5.2.x, the window is invisible at all. The controls are responsive, though, if you manage to click them, provided that you remember their locations by heart (i.e. you may try to switch tabs and see black QGLWidget on opengl tab).
This issue comes out when all the three macros are defined. Having disabled one of them, you get properly working application with respect to some sort of difference: the top widget is plain QWidget instead of QMainWindow or no fullscreen mode or no OpenGL can be used.
PS. There were no such problems with Qt 5.1.x. Also, no problems under Linux.
Attachments
Issue Links
- is duplicated by
-
QTBUG-52039 using winId method has not update window with Qt::FramelessWindowHint flags
- Reported
-
QTBUG-63927 Widgets in a frameless window stop being painted if winId() is called
- Closed
-
QTBUG-40786 Animation doesn't work when ui file is used
- Closed
-
QTBUG-58575 No repaint if ActiveX-Control within frameless Window
- Closed
-
QTBUG-59995 Windows: Redrawing problems in a frameless window that contains QGLWidget
- Closed
- relates to
-
QTBUG-33520 REG: Minimizing/restoring widget when flag FramelessWindowHint and attr. AA_NativeWindows is set does not restore widget.
- Closed
-
QTBUG-41883 Windows: main menu no more active when in fullscreen with qopenglwidget
- Closed
-
QTBUG-42410 QtQuick fullscreen Window buggy alt-tab and screenshot behaviour
- Closed
- replaces
-
QTBUG-40592 Painting problem for combination of Qt::FramelessWindowHint, Qt::AA_NativeWindows and setContentsMargins(0, 0, 0, 0)
- Reported
-
QTBUG-40684 Qt::FramelessWindowHint and QWidget::winId bug
- Closed
-
QTBUG-40795 Borderless window with native control won't draw updates
- Closed
For Gerrit Dashboard: QTBUG-39220 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
93872,13 | QWidgetWindow: Ensure Qt::WA_Mapped is set on obscured parent widgets | 5.12 | qt/qtbase | Status: MERGED | +2 | 0 |