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

Sometimes getting "Invalid property assignment: int expected"

    XMLWordPrintable

Details

    Description

      Sometimes (happened now 3 times in about a week) when I run QQEM on Qt Creator with the latest Qt 6.4.0 RC it fails to start due to error:

       

      QQmlApplicationEngine failed to load component
      qrc:/qml/main.qml:515:5: Type MainView unavailable
      qrc:/qml/MainView.qml:53:5: Type PropertyEditDialog unavailable
      qrc:/qml/PropertyEditDialog.qml:571:37: Invalid property assignment: int expected
      

      That line 571 points to "font.pixelSize: 12" in here:

      Text {
        anchors.centerIn: parent
        text: "PICK"
        font.pixelSize: 12
        color: mainView.foregroundColor2
        style: Text.Outline
        styleColor: mainView.backgroundColor1
      } 

      Which doesn't make any sense... Run application again and everything is OK. My guess is some rarely triggering bug in QML engine / parsing / compiler or something?

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            kagro Kaj Grönholm
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes