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

treat QQmlApplicationEngine::objectCreationFailed from QML as errors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • QDS 4.4, QDS 4.3, QDS 4.2
    • QML Live Preview
    • None
    • All

    Description

      In the attached project, Screen01.ui.qml has a Timer which contains Connections.
      *Copying and pasting code from QDS breaks a format somehow, hense the screenshot.

      When Live Preview is started, QDS outputs this warning.

      18:49:59: Starting C:\Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\bin\qml2puppet-4.2.0.exe --qml-runtime -I C:/Users/81808/Downloads/UntitledProject3/imports -I C:/Users/81808/Downloads/UntitledProject3/asset_imports --apptype widget C:/Users/81808/Downloads/UntitledProject3/content/Screen01.ui.qml "-qmljsdebugger=file:C:/Users/81808/AppData/Local/Temp/QtDesignStudio-ntrlIg/qtc-socket.HEtMth,block,services:QmlPreview,DebugTranslation"...
      QML debugging is enabled. Only use this in a safe environment.
      Info: Starting QML Runtime ((null):0, (null))
      Debug: QML Debugger: Connecting to socket C:/Users/81808/AppData/Local/Temp/QtDesignStudio-ntrlIg/qtc-socket.HEtMth... ((null):0, (null))
      Warning: QQmlApplicationEngine failed to load component ((null):0, (null))
      Warning: file:///C:/Users/81808/Downloads/UntitledProject3/content/Screen01.ui.qml:24:9: Cannot assign to non-existent default property (file:///C:/Users/81808/Downloads/UntitledProject3/content/Screen01.ui.qml:24, (null))
      Critical: QEventDispatcherWin32::wakeUp: Failed to post a message (ウィンドウ ハンドルが無効です。) ((null):0, (null))
      qml: Did not load any objects, exiting.
      18:50:00: C:\Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\bin\qml2puppet-4.2.0.exe exited with code 2
       

      This is not even an error and just a warning, yet, Live Preview fails to launch.
      Same goes for launching the application in QDS with a play button.

       

      Attachments

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

        Activity

          People

            tjenssen Tim Jenssen
            mikio_hirai Mikio Hirai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes