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

Change spacer width/height without sizepolicy

    XMLWordPrintable

Details

    • 7c3cfdbcb7d5506138efa9f06b1424f7a879fad6

    Description

      There's no possibility to change spacer size without sizepolicy. Problem is that user may want to change width or height value without touching to current policy. Specific issue could be that QUiLoader loads dynamically UI that spacer size is wanted to change and there's no possibility to get current policy for it. UI form might be implemented by third party. Spacer setGeometry also doesn't work for this. It just updates internal rect value but not update spacer width/height.

      So three options suggested:
      1. Let setGeometry() change width and height
      2. Give access to get current size policy.
      3. Provide new changeSize() method that let size policy unchanged

      Attachments

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

        Activity

          People

            qtcomsupport Qt Support
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes