Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Showcase
  4. QFonticon
Forum Updated to NodeBB v4.3 + New Features

QFonticon

Scheduled Pinned Locked Moved Showcase
3 Posts 2 Posters 1.9k Views 1 Watching
  • 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.
  • D Offline
    D Offline
    dridk2
    wrote on last edited by
    #1

    I created a simple class that allow you to build QIcon from font, like Awesome font.
    https://github.com/dridk/QFontIcon

    Suggestions to improve it are welcome. Please do it from github

    alt text

    1 Reply Last reply
    3
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      thanks for sharing this.
      2 small things:

      • isn't there a memory leak in mInstance?
      • does QApplication::palette("QWidget") use the style palette?

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      D 1 Reply Last reply
      0
      • VRoninV VRonin

        thanks for sharing this.
        2 small things:

        • isn't there a memory leak in mInstance?
        • does QApplication::palette("QWidget") use the style palette?
        D Offline
        D Offline
        dridk2
        wrote on last edited by
        #3

        @VRonin mInstance is a singleton. Did you get an issue?
        Yes, actually it uses the native palette to display disabled color.
        You can set a custom color if you want.

        1 Reply Last reply
        0

        • Login

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