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

Loader's source path is resolved differently in 2D form view and LivePreview

    XMLWordPrintable

Details

    Description

      The attached project has a custom Loader called ScreenLoader, which is located in the folder one level below the main project.
      (Not sure if this is particular for MCU projects. The attached project is an MCU project. I didn't have enough time to check if this also happens for the big Qt project)

      ScreenLoader is used to load Loaded.qml located at the same level folder in Screen01.ui.qml. 2D Form View shows the preview correctly as the Loaded.qml's path is resolved relative to Screen01.ui.qml.

      However, when the LivePreview is launched, the screen is not properly rendered. This is because the path of source of ScreenLoader is resolved relative to ScreenLoader.qml this time.

       

      To prove this, I can change the path to source in Screen01.ui.qml. This time, 2D form view doesn't display correctly whereas LivePreview does.

       

       

      Attachments

        Issue Links

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

          Activity

            People

              thohartm Thomas Hartmann
              mikio_hirai Mikio Hirai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes