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

setFixedSize(sizeHint()); glitch on dialog move

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.8.0
    • Widgets: Layout
    • None
    • Microsoft Windows 10 Pro Version 10.0.15063 Build 15063

    Description

      I created a custom QDialog with a vertical Layout (tabwidget and a horizontal Layout (buttons) below it). Each tab has its own vertical Layout with a Groupbox at the bottom, divided by a vertical stretch from the other widgets above. In order to make the dialog resize correctly on different dpi factors, I use setFixedSize(sizeHint()); at the end of its constructor. This works fine with all my other custom Dialogs. Yet when I open the Dialog in the running application A: some labels are missing the last character and B: when i move the dialog it changes its height on every time I start grabbing. To be precise it switches back and forth between the same two heights. This should not happen on a fixed size. I'm assuming it is related to the stretches?

      Attachments

        1. glitch.gif
          glitch.gif
          925 kB
        2. glitch 2.PNG
          glitch 2.PNG
          2 kB
        3. qtbug61821_diag.diff
          3 kB
        4. qtbug61821_simple.zip
          3 kB
        5. qtbug61821.zip
          3 kB
        6. qtbug61821.zip
          5 kB

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              megamouse Patrick Waldner
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes