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

QTooltip dismissed immediately(<1 second) on Mac when LineEdit has focus

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 4.6.2, 4.6.3, 4.7.0
    • None
    • Mac OS X
    • macOS

    Description

      Here is an example show the bug.

      class MyLineEdit: public QLineEdit
      {
      Q_OBJECT
      public:
          MyLineEdit(const QString & title, QWidget * parent = 0);
      
      public slots:
          void onTextChanged()
          {
              QToolTip::showText(QPoint(100,100), "test tooltip...., this is the example of tooltip dismissed immediately");
          }
      };
      
      MyLineEdit::MyLineEdit(const QString & title, QWidget * parent): QLineEdit(title, parent)
      {
          QObject::connect(this, SIGNAL(textChanged(const QString&)), this, SLOT(onTextChanged()));
      }
      
      int main (int argc, char * argv[]) {
          QApplication app(argc, argv);
          MyLineEdit* le = new MyLineEdit("test LineEdit");
          le->show();
          return app.exec();
      } 
      

      The same code works on Windows.

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              xcm Martin Petersson (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes