Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12.0
-
None
Description
In Qt5.12 with Windows 10 tooltips are placed in a wrong position.
In earlier versions the tooltip was placed about 5 pixel to the right and about 10 pixel below the mouse position. Now the tooltip is placed about 2 pixel to the left and about 10 pixel below the mouse position by default. Im pretty sure this is not intended and this causes a problem, if the tooltip has a large height. If the tooltip is large the vertical position might be corrected by the tooltip placement algorithm to ensure it is fully displayed. The tooltip is then placed under the mouse position (because tooltip begins 2 pixel left to mouse position). This makes the GUI think, that the mouse isn't any longer above the item, for which the tooltip should be displayed and the tooltip vanishes. Now that the tooltip disappeared the mouse is again above the original GUI item and the whole procedure starts again. It results in a cycle of tooltip appearing and disappearing over and over again.
See below two screenshots of tooltip placement in Qt 5.8 vs Qt 5.12
See issue is caused by the calculation of "invisibleMargins" in qwindowswindow.cpp. Invisible margins should have no effect on tooltips.