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

QML debugging is not fully operational with qml files stored in qrc file

    XMLWordPrintable

Details

    Description

      Using the project in attachment, the qml debugging feature is not fully operational when the qml file comes from a qrc file. I copy paste the contents of the main.cpp file:

          //If file qml/steptest/main.qml has no alias in the prefix "/" in the qrc file, the breakpoint is triggered,
          //but the corresponding qml/steptest/main.qml is not opened at the correct position and the yellow arrow is not shown in the file
          viewer.setSource(QUrl("qrc:/qml/steptest/main.qml"));
      
          //If file qml/steptest/main.qml has the alias "main.qml" in the prefix "/qml" in the qrc file, the breakpoint is triggered,
          //but the corresponding qml/steptest/main.qml is not opened at the correct position and the yellow arrow is not shown in the file
          //viewer.setSource(QUrl("qrc:/qml/main.qml"));
      
          //If file qml/steptest/main.qml has the alias "start.qml" in the prefix "/qml" in the qrc file, the breakpoint is never triggered
          //viewer.setSource(QUrl("qrc:/qml/start.qml"));
      

      Attachments

        Activity

          People

            kkohne Kai Köhne
            agroyer Anthony Groyer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: