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

Add font icons support for QQC2 Buttons

XMLWordPrintable

    • All

       

      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

        1. image-2022-05-28-15-50-39-729.png
          161 kB
          Elias Steurer
        2. MaterialSymbolFontTest.zip
          15.09 MB
          Elias Steurer
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes