Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-113285

Incorrect width for elements (until resize)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.5.1
    • 6.4.3
    • Quick: Layouts
    • None
    • Linux/X11

    Description

      Hi,

      We're trying to port our Qt application from Qt 6.2.4 to Qt 6.4.3. However, even if it's not a major version change (Qt 5 to Qt 6), we observe some big changes (in the video pipeline, webengine and position of some elements).

      The application is quite complex, but for the positioning, we successfully got a reproducible scenario. The scenario contains 2 QML objects, One defining a small interface with some button, the second is the button itself.

      Then, we launch the application with Qt 6.4.3 and Qt 6.2.3. The result is pretty different, because buttons got a width of 0 (even if if should be different).

      Note: any resize event on Qt 6.4.3 fix the view, but the initial state seems weird.
      Note2: 2 screenshots are attached for both result. Used QML is the same on 6.4.3 and 6.2.4

      Regards,

      Attachments

        1. main.qml
          5 kB
        2. MaterialButton.qml
          4 kB
        3. Qt6.2.4.jpg
          Qt6.2.4.jpg
          18 kB
        4. Qt6.4.3.jpg
          Qt6.4.3.jpg
          15 kB

        Issue Links

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

          Activity

            People

              kagro Kaj Grönholm
              amarok1412 Sébastien Blin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes