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

setFixedSize(sizeHint()); glitch on dialog move

XMLWordPrintable

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

      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?

        1. glitch.gif
          925 kB
          Patrick Waldner
        2. glitch 2.PNG
          2 kB
          Patrick Waldner
        3. qtbug61821.zip
          5 kB
          Patrick Waldner
        4. qtbug61821.zip
          3 kB
          Friedemann Kleint
        5. qtbug61821_simple.zip
          3 kB
          Friedemann Kleint
        6. qtbug61821_diag.diff
          3 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:

                There are no open Gerrit changes