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

Assert on startup with Controls2 ToolTip

XMLWordPrintable

      When Controls 2.0 is imported with an alias ToolTip asserts on startup.

      import QtQuick 2.7
      import QtQuick.Controls 1.4
      import QtQuick.Controls 2.0 as Controls
      import QtQuick.Layouts 1.0
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          Item {
      
              anchors.fill: parent
      
              Rectangle {
      
                  MouseArea {
                      id: ma
                      anchors.fill: parent
                      hoverEnabled: true
                  }
      
                  anchors.centerIn: parent
                  width: 100
                  height: 100
                  color: "red"
                  Controls.ToolTip.text: "aa"
                  Controls.ToolTip.visible: ma.containsMouse
      
              }
      
          }
      }
      

      Error: ASSERT: "_currentList.object" in file qml\qqmlobjectcreator.cpp, line 971

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

            shausman Simon Hausmann
            Dynite Michael Cox
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes