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

dummydata does not work in Live Preview or Run App

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • QDS 4.7.1
    • runtime
    • None
    • Linux/Wayland

    Description

      The dummydata folder works as expected in the QtDS 2D editor. However, it doesn't seem to work when using Live Preview or Run App buttons.

      The attached DummyDataTest.zip is simple app that uses a dummycontext context property with a value property set to a Text item. The 2D editor window correctly pulls from the /dummydata/dummycontext.qml file, but Live Preview shows nothing. See screenshot below.

      Running the qmlpuppet command myself I can get the debug output (modified paths to hide user account info on my machine):

      /path/to/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/bin/qmlpuppet-4.7.1 --qml-runtime -I /path/to/DummyDataTest/. --apptype widget /path/to/DummyDataTest/DummyDataTestContent/App.qml

      QML debugging is enabled. Only use this in a safe environment.
      Info: Starting QML Runtime
      Warning: file:///path/to/DummyDataTest/DummyDataTestContent/Screen01.ui.qml:22: TypeError: Cannot read property 'value' of undefined
      Warning: file:///path/to/DummyDataTest/DummyDataTestContent/Screen01.ui.qml:18: ReferenceError: dummycontext is not defined

       

      Based on this forum post, this appears to have worked in earlier versions.

      https://forum.qt.io/topic/152540/qml-dummy-model-don-t-work-between-qt5-and-q6-with-qt-designer-studio

      Attachments

        1. DummyDataTest.zip
          1.71 MB
        2. Screenshot.png
          Screenshot.png
          12 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thohartm Thomas Hartmann
            msenter Mike Senter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes