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

QPushButton has hardcoded spacing between icon and text

    XMLWordPrintable

Details

    Description

      QPushButton doesn't provide API or stylesheet properties to set spacing between icon and text.

      5.5 has magic number hardcoded in qpushbutton.cpp

          if (!icon().isNull() || showButtonBoxIcons) {
              int ih = opt.iconSize.height();
              int iw = opt.iconSize.width() + 4;
              w += iw;
              h = qMax(h, ih);
          }
      

      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
            aantropov Anton Antropov
            Votes:
            6 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes