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

fix "preview starts always with mainFile and keeps root item size" in a proper way

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • QDS 1.4
    • QDS 1.4
    • QML Live Preview
    • None
    • QDS 2D -Sprint 1

    Description

      This brings a problem when changing the current file to another different sized file then the mainFile. It keeps the first initialized size of the root item.

      in qtcreator\src\plugins\qmlpreview\qmlpreviewconnectionmanager.cpp

      there is code:

              if (!m_fileClassifier(changedFile)) {
                  emit restart();
                  return;
              }
      

      maybe doing this for current file change will be the solution

      also, this brings a problem when a component is used in the main.qml file is broken every other component can not be previewed

      Attachments

        Issue Links

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

          Activity

            People

              tjenssen Tim Jenssen
              tjenssen Tim Jenssen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes