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

QMacStyle: QPushButtons always have space below when in a QLayout

    XMLWordPrintable

Details

    Description

      In QMacStyle, any QPushButton that is in a layout will have space below it, regardless or whether or not that layout's spacing and margin is set to zero.

      This is not the case with all widgets. For example, this problem is not apparent with QToolButtons.

      This problem is most apparent when the pushbuttons are hidden. When the buttons are hidden, the space still exists.

      This bug does not occur in other styles.

      Note from development:

      This is a bug but is workaroundable. It is a result of the layout rect. See: http://doc.trolltech.com/qq/qq23-layouts.html

      You can workaround this by setting the Qt::WA_LayoutUsesWidgetRect attribute on the widgets that cause problems.

      Attachments

        Issue Links

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

          Activity

            People

              bjnilsen Bjørn Erik Nilsen
              gpf Shane McLaughlin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes