Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-445

Qt Quick emulation layer crashed when opening a ui.qml file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • QDS 1.0
    • All Other Issues
    • None
    • Qt Design Studio 1.0.0
      Based on Qt 5.11.2 (MSVC 2015, 32 bit)
      Built on Oct 25 2018 07:07:55
      From revision af7baa23f7

    Description

      I'm following along with the example here:

      https://codereview.qt-project.org/#/c/251488/

      I had just finished modifying PushButton.ui.qml as instructed. I hadn't saved anything yet. The instructions say:

      Double-click Screen01.ui.qml in the Project sidebar view to open it on the canvas.

      I accidentally opened loginui1.qml instead (via Navigator > Project), so then I found Screen01.ui.qml in the tree view and opened it, but saw an error:

      When I clicked on "Go to error", it brought me here:

      import QtQuick 2.10
      import loginui1 1.0
      
      Rectangle {
          width: Constants.width
          height: Constants.height
          
          
          Text {
              text: qsTr("Qt Account")
              font.pointSize: 24
              anchors.centerIn: parent
              font: Constants.font
          }
          
          Image {
              id: image
              x: 8
              y: 28
              width: 106
              height: 81
              source: "qt_logo_green_rgb.svg"
          }
      }
      

      If I hit Ctrl+Shift+S to save all files and then try to open the file in the form editor again, it can open the file without crashing, but I need to restart Design Studio to be able to e.g. drag items onto the canvas.

      Attachments

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

        Activity

          People

            thohartm Thomas Hartmann
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes