Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Change color of svg image in button
joshua-anderson last edited by
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!