Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85762

Tooltip hides immediatley on MAC if key is released

    XMLWordPrintable

Details

    • macOS

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              srutledg Shawn Rutledge
              pklaffert Philipp Klaffert
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes