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
public:
tb->setGeometry(10,10,100,100);
tb->setStyleSheet("border: 2px solid #8f8f91; border-radius: 20px");
}
};
int main(int argc, char **argv){
Dialog dlg;
return dlg.exec();
}
class Dialog : public QDialog {
public:
QToolButton *tb;
Dialog() : QDialog(){
tb=new QToolButton(this);
tb->setGeometry(10,10,100,100);
tb->setStyleSheet("border: 2px solid #8f8f91; border-radius: 20px");
}
};
int main(int argc, char **argv){
QApplication app(argc, argv);
Dialog dlg;
return dlg.exec();
}
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
Bookmarks