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

QToolBox / QToolBoxButton sizeHint does not honor button size

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.7.0
    • GUI: Look'n'Feel
    • None
    • Windows 10

    Description

      The sizeHint of QToolBox is not calculated correctly. The QToolBoxButton uses only the iconSize and the textSize for ist sizeHint.
      QSize total(iconSize.width() + textSize.width(), qMax(iconSize.height(), textSize.height()));

      It has to respect the style "PM_ButtonMargin" and "PM_DefaultFrameWidth" like QPushButton does.
      style()->sizeFromContents(QStyle::CT_PushButton, &opt, QSize(w, h), this)

      Attachments

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

        Activity

          People

            bachewii Jens
            mwaldi Michael Waldmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes