Hi,
I want to make a user interface with some buttons. But instead of texts on the buttons I want to have some Pictures. How can I make that?
Thx
Hi,
I want to make a user interface with some buttons. But instead of texts on the buttons I want to have some Pictures. How can I make that?
Thx
no pain no gain
What kind of pictures, what format? Jpeg, png?
I recommend going with png, since with jpeg you may have some problems (with the jpeg plugin, actually ).
Anyway, you can set the image with QAbstractButton::setIcon and adjust it's size with QAbstractButon::setIconSize. You can also remove the text with setText("").
Read furhter the description of QPushButton in Assistant.
Regards
Masih (19th May 2007)
Bookmarks