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

Form Editor not showing proper visual

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • QDS 4.5
    • QDS 3.9, QDS 4.0
    • 2D View
    • None
    • Windows

    Description

      We found some strange issues with Qt Design Studio when we tried to move from Qt 6.2 to Qt 6.4 (to experiment with some of the new features and prepare for 6.5 LTS). These don’t seem to be problems when you actually run the application through Qt Design Studio. They only seem to be problems in the 2D / Form Editor view within the Design mode/tab of Qt Design Studio.

       

      Included is a very small qmlproject to illustrate the various issues. Please see the code and comments in Screen01.ui.qml for more details, but the main issues in the latest Qt Design Studio 4.0.0 preview (as well as some other versions) seem to be:

      Using a Rectangle (or RowLayout with only Rectangle children) whose height is bound to the property in a parent, where the parent property is not referenced by id and contains simple math, results in the Rectangle having a height of

      • However things work correctly when:
      1. hard-coding the height
      2. referencing the parent property by id
      3. removing the simple math from the parent property
      • This can be seen by the missing light yellow lines in many of the images attached.

      Using a RowLayout (with at least one Qt Quick Controls Button child) whose height is bound to the property in a parent, where the parent property is referenced by id, results in the RowLayout having a height of 0.

      • However, things work correctly when:
      1. referencing the parent property without id
      2. hard-coding the height
      • This can be seen by the missing orange lines and their corresponding Qt Quick Control buttons.

      Attachments

        1. image001.png
          image001.png
          32 kB
        2. image002.png
          image002.png
          31 kB
        3. image004.png
          image004.png
          30 kB
        4. QtBrokenFeatures.zip
          29 kB
        5. QtDSRunWorking.png
          QtDSRunWorking.png
          19 kB
        6. screenshot-1.png
          screenshot-1.png
          568 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thohartm Thomas Hartmann
            shawndorsey Shawn Dorsey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes