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

Incorrect painting of widget on the first show

    XMLWordPrintable

Details

    • Windows

    Description

      After upgrading to qt version 6.2.3 from qt5 I faced the problem with starting the app in the maximized mode. The widget is first painted with it's normal size and then repainted fine. The intermediate state is shown on the gif below.

      The code of the app from the giff comes together with Qt (my version is Qt-6.2.3) and called "styles" (path is Qt/Examples/Qt-6.2.3/widgets/widgets/styles) or can be found on the qt.io. I have just changed `widget.show()` to `widget.showMaximized()` in main.cpp.

      I figured out that sometimes widget starts fine, but this is rather rare. Also the more complicated widget is, the more time it takes to correctly paint it on the first show.
      In the example from the gif the start is so quick that it is almost invisible, but in the heavy app I'm working with this slow startup really catches the eye.

       

      Attachments

        1. 5_15_2.mp4
          1007 kB
        2. 6.3.1.mp4
          1.49 MB
        3. widget_first_show.gif
          widget_first_show.gif
          1000 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            ashcherbakov Алексей Щербаков
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes