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

[REG Qt 4.8.7 -> Qt 5.3.1] QToolTip not shown after showing QLabel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.3.1, 5.5.0
    • None
    • Ubuntu 15.04 64 bit
      Windows 7 64 bit

    Description

      1. Build and run this simple program:
        #include <QApplication>
        #include <QLabel>
        #include <QToolTip>
        
        int main(int argc, char *argv[])
        {
            QApplication app(argc, argv);
            QLabel l;
            l.resize(300, 300);
        //    l.show();
            QToolTip::showText(QPoint(100, 100), "TT");
            app.exec();
        }
        

        It will just show the QToolTip.

      2. Now uncomment the line l.show();, build and run the project again.
        Now the QLabel will be shown, but the QToolTip won't be shown anymore. There are no warnings or error messages.

      Both, the QLabel and the QToolTip should be shown. With Qt 4.8.7, this works correctly.

      Attachments

        1. qtbug47482.zip
          1 kB
        2. qtbug47482_qt5_log.txt
          2 kB
        3. qtbug47482_qt4_log.txt
          2 kB

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes