Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.6.0 Alpha, 5.12
-
None
-
Tested on OSX 10.10.3 and Windows 10.
Description
If you have a widget such as a QLineEdit or QTextEdit that has focus and which is currently showing its tool tip, if you start typing the tool tip should immediately be hidden. This was the behavior through Qt 5.5.1 (tested on Macintosh 10.10 but also on Windows I believe) but using 5.6, the tool tip is not being hidden.
I'm using d55a9e3a66d573649099ad4270f2ee01ca94a657.
You can use the attached file to verify. Click in either widget and start typing. That works correctly. Then move the mouse a bit so that the tool tip comes up. While the tool tip is visible, type some more. The tool tip should immediately be hidden so that the typing goes to the selected widget, but that does not happen.
Using Windows 10, the typing at least goes to the target widget (the QLineEdit or QTextEdit). On Macintosh, the typing does not go to the target widget (Edit: This part is actually fixed by the patch in https://codereview.qt-project.org/#/c/139941/). But on both platforms, using Qt 5.5.1, typing immediately dismissed the tool tip, and that is no longer happening.
Attachments
For Gerrit Dashboard: QTBUG-49462 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
226430,2 | QToolTip: Hide tooltip on key event on macOS | 5.11 | qt/qtbase | Status: MERGED | +2 | 0 |