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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.14.0
    • 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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            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