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

CalendarModel conflict

    XMLWordPrintable

Details

    • 5cf6ad9165cc38b7b2a7e2421d70f0d93256c866

    Description

      Test case:

      import QtQuick 2.6
      import QtQuick.Controls 1.2
      import Qt.labs.calendar 1.0 as LC
      
      ApplicationWindow {
          visible: true
          Calendar { }
      }
      

      Error:

      QQmlApplicationEngine failed to load component
      qrc:/main.qml:7 Type Calendar unavailable
      file:///Users/jpnurmi/Qt/5.6/clang_64/qml/QtQuick/Controls/Calendar.qml:216 Cannot assign object to property
      

      Source:

      property CalendarModel __model: CalendarModel { // <== line 216
          locale: calendar.__locale
          visibleDate: new Date(visibleYear, visibleMonth, 1)
      }
      

      See also https://forum.qt.io/topic/67237/labs-and-controls-conflict

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              jpnurmi J-P Nurmi
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes