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

Tooltip on Mac doesn't show up property (and othe focus issues?)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 5.0.0 Beta 1, 5.0.0 RC 1, 5.0.0, 5.0.1, 5.0.2, 5.5.0
    • None
    • OS X 10.7.4, 10.8.2, 10.8.3, 10.9.5, 10.10.3, Qt 5
    • macOS

    Description

      Only the tooltip of the first widget hovered over in a Mac window shows up. Hovering the mouse over other widget does not show the tooltip of the new widget and the first tooltip stays on screen.

      Try the follow sample code:

      #include <QtWidgets/QtWidgets>
      
      int main(int argc, char *argv[])
      {
      	QApplication a(argc, argv);
      
      	QWidget w;
      	QFormLayout * layout = new QFormLayout;
      	w.setLayout(layout);
      
      	layout->addRow("Menu", new QComboBox);
      
      	QLineEdit * edit = new QLineEdit;
      	edit->setToolTip("Tooltip 1");
      	layout->addRow("Field 1", edit);
      
      	edit = new QLineEdit;
      	edit->setToolTip("Tooltip 2");
      	layout->addRow("Field 2", edit);
      
      	w.show();
      	
      	return a.exec();
      }
      

      Hover the mouse over the line edit of "Field 1". The tooltip of the filed pops up correctly. Then move and hover the mouse over the line edit of "Field 2". Note the firs tooltip stays on screen and the second one never shows up.

      Also notice that after clicking in either of the line edit, the mouse cursor stays in the I beam cursor even when moved over other part of the window. It's supposed to switch to arrow when moved outside of the field. You need to click at somewhere outside of the field to bring it back to normal.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            stephenju Stephen Chu
            Votes:
            9 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes