PDA

View Full Version : How to show QPushButton as flat when it is checked



santosh.kumar
3rd August 2010, 08:09
Hi

I m using QPushButton in my Application. I have set the Button's property setFlat(true) and setCheckable(true). Whenever I checked the QPushButton its Boundry showing means it doesn't show as flat.

My requirement is that when I pressed or Checked Button should show as flat, its boundry will not show. If anybody know this issues kindly tell me..


Attached Image show the Boundry of button when checked. I donot want the Boundry of PushButton when it is Pressed or Checked.

Thanks
Santosh Kumar Singh

Tavit
3rd August 2010, 11:07
Hi santosh,
For QPushButton you should set the style sheet,that time you will get flat button.

pushbutton Objectname->setStylesheet{ QPushButton:flat { border: none; }}


Thanks&Regards,
Tavit.