Top "Qtstylesheets" questions

For questions relating to Qt Style Sheets, which allow declarative customization of Qt objects.

changing stylesheet dynamically

I'm trying to change the style of my QLabel using a dynamic property since we can target this property in …

qt qtstylesheets
How to change color of QMainWindow borders and title bar?

The QMainWindow below is assigned a dark-gray background-color using QSS. I would also like to change the color of the …

python qt pyqt qmainwindow qtstylesheets
QLabel margin and style sheet padding in labels in Qt

I have a label, and I set both padding in the style sheet and a margin using setMargin(). ui->…

c++ qt qtstylesheets
How to set a different background-color to a disabled button with QSS?

I have already tried to use disabled and !enabled but it doesn't work. Here is my QSS code : QPushButton { background-color:#44…

c++ qt qt5 qtstylesheets qt5.3
Using variables in qt StyleSheets

Is there any possibility of giving variable name to hex/rgb numbers in .qss file . For eh myColor = #FFCC08 QPushButton { …

qt qtstylesheets
QCombobox down arrow image

How to change Qcombobox down arrow image? Right now I'm using this QSS code, but this doesn't work, I can't …

c++ qt qtstylesheets
Qt Stylesheet syntax: targeting a specific button, not ALL buttons

I have a window with two buttons. I'd like to decorate each one with a different stylesheet. They both have …

qt qtstylesheets
How to add style via setStyleSheet() without losing orignal style in Qt?

I Konw I can use setStyleSheet() to set style in Qt.But I encountered a problem,when I used setStyleSheet() …

qt qtstylesheets
How to change QPushButton icon/text spacing with stylesheets?

I'm fairly new to Qt's method of stylesheets and I am looking to adjust the spacing between the icon and …

qt user-interface qtstylesheets
QPushButton with a custom shape

I want to make some buttons look like buttons you see in Skype. How to style a QPushButton with a …

qt qtstylesheets qpushbutton