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

QVBoxLayout: QTableWidget with sizeAdjustPolicy = AdjustToContents and horizontal QSizePolicy::Minimum infinitely expands

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.14.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      Just open file attached in QtDesigner and start preview (Ctrl+R). You will see dialog expanding horizontally again and again and again....

         tv->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
          tv->horizontalHeader()->setStretchLastSection(true);
          QSizePolicy sizePolicy1(QSizePolicy::Minimum, QSizePolicy::Preferred);
          sizePolicy1.setHorizontalStretch(0);
          sizePolicy1.setVerticalStretch(0);
          tv->setSizePolicy(sizePolicy1);
      

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            cooler Cooler
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes