Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. How to use SF Symbols dynamically with QIcon::fromTheme()?
Forum Update on Monday, May 27th 2025

How to use SF Symbols dynamically with QIcon::fromTheme()?

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
macosmacos11icons
3 Posts 2 Posters 977 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Elsie Hupp
    wrote on 19 Sept 2021, 14:45 last edited by
    #1

    Hi Qt Folks!

    I would like to be able to use SF Symbols in an existing GPL cross-platform Qt application on macOS. SF Symbols can export to SVG or other formats for use with XDG icon themes, but the licensing of SF Symbols is not generally compatible with being incorporated into GPL code. (I might be misunderstanding the issues here, but this is somewhat of legal issue more than a technical one.)

    Anyway, is there a particularly straightforward way to access SF Symbols dynamically from Apple's libraries using Qt, in order to be able to link them dynamically for use in a quasi-XDG icon theme? I'm mainly asking in the context of Qt for Python, but it would be useful to know for Qt for C++, as well.

    (I'm sure there's a way to build a quasi-XDG SF Symbols interface for macOS if one doesn't exist already, but that's a little bit beyond me at the moment, which is why I'm asking more specifically in the context of Qt.)

    Thanks!

    E 1 Reply Last reply 19 Sept 2021, 15:31
    0
    • E Elsie Hupp
      19 Sept 2021, 14:45

      Hi Qt Folks!

      I would like to be able to use SF Symbols in an existing GPL cross-platform Qt application on macOS. SF Symbols can export to SVG or other formats for use with XDG icon themes, but the licensing of SF Symbols is not generally compatible with being incorporated into GPL code. (I might be misunderstanding the issues here, but this is somewhat of legal issue more than a technical one.)

      Anyway, is there a particularly straightforward way to access SF Symbols dynamically from Apple's libraries using Qt, in order to be able to link them dynamically for use in a quasi-XDG icon theme? I'm mainly asking in the context of Qt for Python, but it would be useful to know for Qt for C++, as well.

      (I'm sure there's a way to build a quasi-XDG SF Symbols interface for macOS if one doesn't exist already, but that's a little bit beyond me at the moment, which is why I'm asking more specifically in the context of Qt.)

      Thanks!

      E Offline
      E Offline
      Elsie Hupp
      wrote on 19 Sept 2021, 15:31 last edited by
      #2

      Modmins, please feel free to move this topic to a different category if you feel it would be more appropriate. The category descriptions made it kind of difficult to choose in this case.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 19 Sept 2021, 19:28 last edited by
        #3

        Hi and welcome to devnet,

        Based on this Apple doc, one possible path could be to create a NSImage from the symbol and then a QImage/QPixmap from it.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0

        1/3

        19 Sept 2021, 14:45

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved