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.1
    • 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
          32 kB
          Shawn Dorsey
        2. image002.png
          31 kB
          Shawn Dorsey
        3. image004.png
          30 kB
          Shawn Dorsey
        4. QtBrokenFeatures.zip
          29 kB
          Shawn Dorsey
        5. QtDSRunWorking.png
          19 kB
          James Wozniak
        6. screenshot-1.png
          568 kB
          Thomas Hartmann

        Activity

          People

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

            Dates

              Created:
              Updated: