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

Add QAbstractButton::textAlignment property

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • None
    • None

    Description

      Currently, QPushButton text is always centered, unless it has menus attached, in which case it becomes left-aligned on macOS.

      Some applications might want to change the default alignment.

      According to vhilshei (see QTBUG-107835): "In macOS's AppKit, all buttons have an alignment property, which defaults to left for menu buttons, and to center for normal push buttons. Then applications can explicitly set the property depending on the context in which the different buttons are used."

       

      Attachments

        Issue Links

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

          Activity

            People

              axelspoerl Axel Spoerl
              skoh-qt Sze Howe Koh
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change