Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.15.2
-
None
-
More than one monitor horizontally
-
-
1a3b8bf0e7d6ff727f9dffacab2360d1c01b397e (qt-creator/qt-creator/5.0)
Description
I'm currently using two monitors next to each other under X11 (Linux). If I don't have Qt Creator on the leftmost monitor, the tooltip next to the autocomplete dropdown has basically no width:
On the leftmost screen, the tooltip works as expected.
This issue is caused by the fact that the monitor width that is used to calculate the width of the tooltip is QScreen::availableGeometry. As the docs state, "Note, on X11 this will return the true available geometry only on systems with one monitor and if window manager has set _NET_WORKAREA atom. In all other cases this is equal to geometry(). This is a limitation in X11 window manager specification."
From my own testing, I noticed that switching the function call in generalproposalwidget.cpp to QScreen::virtualGeometry seems to fix the issue.
Steps to reproduce:
- Have more than one monitor next to each other
- Put Qt Creator on the rightmost monitor
- Start writing code that Qt Creator autocompletes and observe how the tooltip has basically zero width.