You can use style sheet.
QPushButton{
background-image: url(:/images/ImageNamepng)
background-position: top center;
}
what you want to achieve.. the first one or the 2nd or both?
have a look at QToolButton::setToolButtonStyle.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
sorry form my bat english
I write the name of the button config file
buttonsNames = stringToList(std::string("buttonsname"));
looks like this is the first image.
I like the image to obtain the second picture.
How should I follow a method?
Hi i don't edit my message and i must write this message as so sory
I want to showing picture and text in QPushButton. But text is showing right the picture. How can i show picture is top and text is buttom?
P.S: @spirit i don't used QToolButtonStyle. must i be include to library?
Last edited by electronicboy; 9th October 2009 at 22:32.
Bookmarks