Hi, I'm trying to set background to my cheack box; I'd like set it to a png; is it possible?
This below compile but the background is gray....Thanks
Printable View
Hi, I'm trying to set background to my cheack box; I'd like set it to a png; is it possible?
This below compile but the background is gray....Thanks
Have you try it this way:
In other way, is the path of the image correct?
sorry but don't happen nothing...
nothing hint for this?
But is the path correct or not? Can you display the pixmap on a QLabel?
yes I have in .pro the line /images/face.png, because it is also a pixmap on a button. I haven't any error of path...
The attached app works fine for me. I think you have a problem with the pixmap image path. Does it start with "/"? I guess it shouldn't. Are you sure you load the pixmap to the button exactly the same way?
Sorry; we didn't understand! I'd like set the face.png inside the square of checkBox where, when I click, apper the "V". Are you understand? Is it possible?
Thanks for all.
You'd have to subclass QCheckBox to do that. Or implement your own QStyle.