QPixmap from theme to label
General and Desktop
5
Posts
3
Posters
2.8k
Views
1
Watching
-
I want to set a qpixmap (fromtheme) to a label, but I cannot find the way. I only know how to set it to a button using the button's properties.
Any clue?
Thanks in advance!
-
-
Tanks for this, but what I actually need is to use the QIcon::fromtheme() function so as to read the theme's icons!
-
Yep, I found a solution:
@QPixmap pix=QIcon::fromTheme("dialog-error").pixmap(22);@Yet, thanks for being kind with the newbies :)