Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Change color of svg image in button

Change color of svg image in button

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 2.2k 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.
  • J Offline
    J Offline
    joshua-anderson
    wrote on last edited by
    #1

    Hello everyone,
    I am having trouble getting a definitive answer on this from the documentation. It appears that in qt4, you could use css to override the brush used to color a svg image (http://qt-project.org/forums/viewthread/411). I thought this could be useful to change the color of my simple one color icons inside a qpushbutton. First, I was wondering if this still existed and is a good method to change the color of my svg icons. Second, if it is, how do you change the attributes of a svg inside of a button? It has no id, like every other widget has, so I don't know how I would apply the css properties to it. Thanks!

    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