PDA

View Full Version : who know about making button with text and image



erichong81
17th March 2010, 05:27
hello!
I just ask for this problem in my project,
i need the button what is used like QPushButton. but it should be included background image. and using text as well.

whan i put the image to button..
i should use the image that is not original size.
I must leave left and right side and extend center area.

who let me know about this problem..!!

aamer4yu
17th March 2010, 06:19
You can use an image as background image for button.
Or you can subclass the button, and draw the image as background yourself.
Also look for similar threads... this one (http://www.qtcentre.org/threads/3295-Image-on-button) might help :)