Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12.5, 5.15.0
-
None
Description
We have a QComboBox containing several entries which all have a tooltip containing additional information.
If the user navigates through the entries with the keyboard, stopping on an entry displays the tooltip.
On MAC the tooltip hides immediately making it basically useless.
I found the responsible code part in the Qt sources:
bool QTipLabel::eventFilter(QObject *o, QEvent *e) { switch (e->type()) { #ifdef Q_OS_MACOS case QEvent::KeyPress: case QEvent::KeyRelease: { const int key = static_cast<QKeyEvent *>(e)->key(); // Anything except key modifiers or caps-lock, etc. if (key < Qt::Key_Shift || key > Qt::Key_ScrollLock) hideTipImmediately(); break; } #endif
Is this intended behaviour?
Attachments
Issue Links
- relates to
-
QTBUG-12825 QTooltip dismissed immediately(<1 second) on Mac when LineEdit has focus
- Closed