PDA

View Full Version : how to get rid of the fram of a button!!



bigbigmoon
7th September 2006, 10:43
Hi ,All!
I am a beginer of QT3,now i want to get rid of the frame of a button(i want to get the button like the button of the menu of xp ),which is designed by QT Desinger,but i don't know how to modify it!







sorry for my poor english !

wysota
7th September 2006, 11:23
Either subclass QPushButton (or QToolButton) and reimplement its paint event or subclass one of QStyle subclasses and reimplement drawControl. But check first, maybe it's enough for your needs to only activate the "flat" property of QPushButton.

bigbigmoon
10th September 2006, 12:38
Thanks for your reply!
:) :)