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

QStackedWidget height for width is wrong

    XMLWordPrintable

Details

    • 4aa9e184b527eb30c0e86576c6fc89fe63433c7e 9f96bf20238a21b62c34261d8dc5a0ad0bfdc789

    Description

      The height for width computation of the QStackedWidget seems wrong.
      If you add a QLabel with A LOT of text (and with long lines), then the QStackedWidget won't be resized at the correct size.
      How to reproduce:
      open designer
      create widget
      add a QStackedWidget into the widget
      add a QLabel into the QStackedWidget ( a lot of text with long lines, wordwrap on).
      Preview
      Play with the resize of the widget
      -> the QLabel doesn't show all the text when the width is small.

      See .ui file as an example.

      Attachments

        1. QTBUG-5838.zip
          3 kB
          Mitch Curtis
        2. qt-bug-resizeHeightForWidth.ui
          11 kB
          Julien Finet

        Issue Links

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

          Activity

            People

              smd Jan Arve
              finetjul Julien Finet
              Votes:
              8 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes