Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.4.0
-
d655391d01 (qt/tqtc-qtbase/dev) 4aeb2674e4 (qt/qtbase/6.4) 4aeb2674e4 (qt/tqtc-qtbase/6.4)
Description
My test environment is a remote server, with an X11 server provided by my desktop PC using XWin32. When I debug the application and look at the position that the dock window is create at the x-coordinate of the QDockWindow is negative (just over 60 pixels to the left of the screen left hand edge). This isn't a major problem as most of the dock widget is on the screen, and probably is related to the decorations being put on the window in the XWin32 environment.
The reason that the warning message is raised can be found in qdockwidget.cpp, line 989. The QScreen *orgWdgScreen is initialized with the creation position of the QDockWidget (i.e. screenAt(- 64, 0)). This returns a null pointer as the location is off the screen, and raises the warning message. Once the QDockWidget is docked and undocked the state->widgetInitialPos is set to a point on-screen, so the problem goes away.
Attachments
For Gerrit Dashboard: QTBUG-108311 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
443762,3 | Replace warning with debug message in dockwidget high DPI mapping | dev | qt/qtbase | Status: MERGED | +2 | 0 |
443840,2 | Replace warning with debug message in dockwidget high DPI mapping | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |