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

Qml Button Tooltips not working in QQuickView

    XMLWordPrintable

Details

    Description

      In a simple application like this:

      import QtQuick 2.1
      import QtQuick.Controls 1.0
      
      Rectangle {
          Button {
              text: "Hello World"
              tooltip: "testing this functionality"
          }
      }
      

      The tooltip of the button works fine when the qml is shown with the "qmlscene" viewer.

      However, as soon as it is shown inside a QQuickView in a simple Qt/C++ application, no tooltip is shown at all:

      #include <QtGui/QGuiApplication>
      
      int main(int argc, char *argv[])
      {
          QGuiApplication app(argc, argv);
      
          QQuickView view;
          view.setSource(QUrl("qml/main.qml"));
          view.show();
          return app.exec();
      }
      

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            rggjan Jan Rüegg
            Votes:
            6 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes