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

MonthGrid: QQmlContext: Cannot set property on internal context.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.8.0
    • Quick: Controls 2
    • None

    Description

      If you click on the first element in the MonthGrid, the following error message appears:

      QQmlContext: Cannot set property on internal context.

       

      New project:

       

      import QtQuick 2.7
      import QtQuick.Controls 2.0
      import QtQuick.Layouts 1.0
      import Qt.labs.calendar 1.0
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          GridLayout {
              columns: 2
      
              DayOfWeekRow {
                  locale: grid.locale
      
                  Layout.column: 1
                  Layout.fillWidth: true
              }
      
              WeekNumberColumn {
                  month: grid.month
                  year: grid.year
                  locale: grid.locale
      
                  Layout.fillHeight: true
              }
      
              MonthGrid {
                  id: grid
                  month: Calendar.December
                  year: 2015
                  locale: Qt.locale("en_US")
      
                  Layout.fillWidth: true
                  Layout.fillHeight: true
              }
          }
      }
      

       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            sebastian_t Sebastian T
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes