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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes