HI,


In My Application i need A QToolButton basically the edges of the QToolButton is Sharp.but i need Rounded Edge.For that i used following code
Qt Code:
  1. class Dialog : public QDialog {
  2. public:
  3. Dialog() : QDialog(){
  4. tb=new QToolButton(this);
  5. tb->setGeometry(10,10,100,100);
  6. tb->setStyleSheet("border: 2px solid #8f8f91; border-radius: 20px");
  7. }
  8. };
  9. int main(int argc, char **argv){
  10. QApplication app(argc, argv);
  11. Dialog dlg;
  12. return dlg.exec();
  13. }
To copy to clipboard, switch view to plain text mode 

After this the edges of toolbutton gets changed to round edges but i can't able to click the toolbutton.The tool button looks like disabled state.But if i check like isEnabled() it returns true.Please Help me to achieve this one.

Regards