View Full Version : PictoGrams on Push Buttons instead of Text
Masih
19th May 2007, 04:55
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:o
marcel
19th May 2007, 05:19
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
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.