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

Describe the purpose of stretch in QSizePolicy

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P3: Somewhat important
    • 5.0.0
    • None
    • Documentation
    • None
    • I54da8605f5e9e5f405c145b78865402baf78eee7

    Description

      It would be nice to describe the purpose of the stretch:
      http://doc.qt.nokia.com/qsizepolicy.html#setVerticalStretch
      http://doc.qt.nokia.com/4.7/qsizepolicy.html#setHorizontalStretch

      E.g. When two widgets are sitting next to each other in a horizontal layout, you can set Horizontal Stretch of the left one to 2 and Horizontal Stretch of the right one to 1 to make the widget on the left always twice the size of the one on the right.

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            mpejcoch Martin Pejcoch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes