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

Add font icons support for QQC2 Buttons

    XMLWordPrintable

Details

    • All

    Description

       

      What I want is essentially:

          Button {
              text: "Button"
              icon.font: myMaterialIcnoFont.name
              icon.content: MaterialSymbols.Icons.Delete
          }
      

      Using 1000 different icons instead of a single font is awful to work with. It is also way harder to acquire a flat list of icons of any website than a simple iconfont. This test project uses icon fonts for regular text:

       

      But it is currently not possible to set this for buttons and other places where icons are required. I know that a Button has icon.name that queries the icon from a QIcon::Theme, but this is just as bad as using hundreds of icons inside a folder.

      MaterialSymbolFontTest.zip

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              kelteseth Elias Steurer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes