QT reference for playing with stylesheets:
QPushButton
{
background-color: rgb(255, 0, 0);
color: rgb(0, 0, 0);
border-radius:10px;
}
QPushButton:hover:!pressed
{
color: rgb(255, 255, 255);
}
QPushButton
{
border-style: none;
}
QPushButton:hover:!pressed
{
border-style: solid;
border-color:grey;
border-width: 2px;
}
border-style:
dashed
| dot-dash
| dot-dot-dash
| dotted
| double
| groove
| inset
| outset
| ridge
| solid
| none
Change styleSheet in maya for pressed icons
imagePath = cmds.internalVar(usd = True) + ResourcesPath
self.ui.RArmIKFK.setStyleSheet(‘QPushButton\n\n{\n\nborder-style: none;\nimage: url(‘+imagePath+’Switch.png);\n\n\n\n}\n\nQPushButton:hover:!pressed\n\n{\n\nimage: url(‘+imagePath+’Twist.png);\n\n}’)

________________________________________________