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

[REG 5.5 -> 5.6] QQuickWidget suppresses QtQuick Controls tooltips

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.6.0 RC
    • 5.6.0 Alpha
    • Quick: Widget
    • None
    • Linux x86_64, X11
    • 561b9323c22a594b402eac343690898d4e9c44d0

      Consider the following QML:

      import QtQuick 2.3
      import QtQuick.Controls 1.2
      
      Rectangle {
          visible: true
          width: 640
          height: 480
      
          Action {
              id: action
              tooltip: "lalala"
          }
      
          Button {
              text: qsTr("Hello World")
              anchors.centerIn: parent
              action: action
          }
      }
      

      Run it in a QQuickWidget e.g. like this:

      #include <QApplication>
      #include <QQuickWidget>
      
      int main(int argc, char *argv[])
      {
          QApplication app(argc, argv);
          QQuickWidget widget;
          widget.setSource(QUrl::fromEncoded("qrc:/main.qml"));
          widget.show();
          return app.exec();
      }
      

      With Qt 5.5 the tooltip "lalala" shows if you hover over the button, with Qt 5.6 it doesn't

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

            ulherman Ulf Hermann
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes