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

Add a property for the text colour of AbstractButton

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.11.1
    • Fix Version/s: None
    • Component/s: Quick: Controls 2
    • Labels:
      None

      Description

      Changing the colour of text in an abstract button is common but in Qt Quick Controls 2 it's extremely difficult. One needs to restyle the button instead of setting a simple value. This either forces using a private API in the form of IconLabel or essentially rewriting the entire component, especially if it has an icon as well. Button, CheckBox, DelayButton, ItemDelegate, MenuBarItem, MenuItem, RadioButton, Switch, and TabButton are affected as they all derive from AbstractButton.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              ddobrev Dimitar Dobrev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes