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

Mac: wrong alignment of QPushButton when style sheet is used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 4.7.1
    • None
    • macOS

    Description

      The alignment/position of a QPushButton is wrong when a style sheet is applied.

      Included a test case to reproduce

      Suggested workaround:
      button->setStyleSheet("QPushButton

      { margin-left: 6px; margin-right: 6px; margin-top: 4px; margin-bottom: 6px; border: 1px solid red; }

      ")

      Attachments

        Issue Links

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

          Activity

            People

              mmutz Marc Mutz
              sanonymous Nokia Qt Support (Inactive)
              Votes:
              10 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes