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
Qt Code:
To copy to clipboard, switch view to plain text mode
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
Qt Code:
To copy to clipboard, switch view to plain text mode
Regards
Have you try it this way:
Qt Code:
To copy to clipboard, switch view to plain text mode
In other way, is the path of the image correct?
Last edited by SkripT; 31st March 2006 at 00:01.
sorry but don't happen nothing...
Regards
nothing hint for this?
Regards
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...
Regards
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.
Regards
You'd have to subclass QCheckBox to do that. Or implement your own QStyle.
Bookmarks