QT Stylesheet Ref

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}’)

________________________________________________

Qt Style Sheets Reference

Qt Style Sheets support various properties, pseudo-states, and subcontrols that make it possible to customize the look of widgets. The following table lists the Qt widgets that can be customized using style sheets: The table below lists all the properties supported by Qt Style Sheets.

Adblock Detected!

Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.