Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22787

QML error is showing when opening project and gone error after edit and save file

    XMLWordPrintable

Details

    • Windows

    Description

      Sample QML is:

       

      import QtQuick 2.12
      import QtQuick.Window 2.12
      
      Window {
          visible: true
          width: 640
          height: 480    
          property variant tbl: ["℃"]    
      
          Text {
              y: 0
              text: tbl[0]
          }    //
          onActiveFocusItemChanged: {
              console.debug("activeFocusItem: ", activeFocusItem) //<- main.qml:18: error: Expected token `,'
          }
      }
      

       

      Reproducible steps:

      1. Open project
      2. Open QML
      3. Showing Expected token `,'
      4. Edit something and save file
      5. Error is gone

       

      Please check with attached sample project.

      Attachments

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

        Activity

          People

            fawzi Fawzi Mohamed
            akizawa Akihito Izawa
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes