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

MenuBar in labs.controls incompatible with Controls 1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.6.0 RC
    • 5.6.0 Alpha
    • Quick: Controls 2
    • None
    • Mageia Linux Cauldron, x86_64, gcc 5.2.1
    • qtquickcontrols: dca7048361d7bae21d5b5d6715c725f1b3d62d1e

      Using QtQuick.Controls and Qt.labs.Controls in the same program produces the following error:

      QQmlApplicationEngine failed to load component
      qrc:/main.qml:10 Cannot assign object to list property "menus"

      Sample program:

      import QtQuick 2.4
      import QtQuick.Controls 1.4
      
      ApplicationWindow {
          width: 640
          height: 480
          visible: true
      
          menuBar: MenuBar {
              Menu { }
          }
      
          Column {
              Test { }
      
              Label { text: "test" }
          }
      }
      
      Test.qml
      import QtQuick 2.4
      import Qt.labs.controls 1.0
      //import QtQuick.Controls 1.4
      
      Button {
          text: "test"
      }
      

      May be similar to QTBUG-48240.

        For Gerrit Dashboard: QTBUG-49794
        # Subject Branch Project Status CR V

            Unassigned Unassigned
            krnekit Nikita Krupenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes