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

QPushButton: Using a stylesheet to add padding will cut of text.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 4.7.0
    • 4.6.0
    • Widgets: Style Sheets
    • None
    • 6e90192b599cee9b903177a0978198326f667613

      Use the following style sheet on a QPushButton:

      setStyleSheet( "QPushButton

      { padding: 6px; padding-left: 10px; padding-right: 10px;}

      " );

      The right part of the text in the button will be cut off.

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

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            xcm Martin Petersson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes