1 Attachment(s)
How to show QPushButton as flat when it is checked
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
Re: How to show QPushButton as flat when it is checked
Hi santosh,
For QPushButton you should set the style sheet,that time you will get flat button.
Code:
pushbutton Objectname
->setStylesheet
{ QPushButton:flat
{ border
: none;
}}
Thanks&Regards,
Tavit.