Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. QWizard (Qt 6, Windows only) - button bar layout bug?
QtWS25 Last Chance

QWizard (Qt 6, Windows only) - button bar layout bug?

Scheduled Pinned Locked Moved Unsolved Qt 6
qwizard
4 Posts 2 Posters 251 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    barbicels
    wrote on 14 Jan 2025, 17:23 last edited by
    #1

    My app's wizard, which worked perfectly in Qt 5 on all platforms, now has a bug in Qt 6 where its QWizard window is a bit too short to show the entire button bar at the bottom, but only on Windows.

    That gray layout rectangle now runs off the bottom of the window, leaving only a thin gray strip. (It's as if the layout engine wasn't notified when the window's final geometry was set.) However, the layout instantly corrects itself when the user drags any edge to resize the window, as the button layout jumps up into full view within the bounds of the window.

    In the following photo, the left side shows the wizard window as built on Qt 5.15.2, and the right side shows the same wizard window as built on Qt 6.5.3, before the user resizes it.

    a476dcb9-2018-49c0-85fa-c028c02b142c-image.png

    Any ideas? Workarounds? As I wrote above, this bug doesn't happen on macOS.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 14 Jan 2025, 19:45 last edited by
      #2

      Hi,

      The first thing I would do is check whether 6.8.1 also shows this behaviour.

      You should also provide a minimal compilable example that demonstrate it so other people can try out in the same conditions as you.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        barbicels
        wrote on 15 Jan 2025, 16:54 last edited by
        #3

        Thanks for the advice! I'm not able to accommodate 6.8.1 at the moment, but I was able to work around my issue by changing the code to use Modern style (i.e., setWizardStyle(ModernStyle);) except on macOS, which has the side benefit of bringing back the sidebar pixmap that's suppressed by default on Windows.

        For the info of anyone reading, the one thing about my wizard pages that's unusual is that each page's main widget is a resizable QScrollArea that wraps a widget with a QVBoxLayout. As I wrote earlier, this worked fine in Windows with 5.15.2. I see a fair bit of churn in the qwizard_win.cpp code since then, mostly in the area of Aero/Vista tweaks, so I figure that's caused my problem, and possibly later fixed it.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 15 Jan 2025, 20:04 last edited by
          #4

          What do you mean by accommodate ?
          My suggestion was mainly to test to ensure whether it was a known bug.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          1/4

          14 Jan 2025, 17:23

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved