Top "Qtstylesheets" questions

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

How to change QPushButton text and background color

I am using following code to connect QMenu to QPushButton. When button is clicked a pull-down menu with multiple sub-menu's …

python qt pyqt qtstylesheets
How to apply style sheet to a custom widget in PyQt

# -*- coding: utf-8 -*- import sys from PyQt4.QtGui import * from PyQt4.QtCore import * class MainWindow(QWidget): def __…

python pyqt pyqt5 pyqt4 qtstylesheets
PyQt give color to a specific element

This might be an easy question, but I'm trying to give a color to a specific QLabel in my application …

python pyqt pyqt4 qtstylesheets qlabel
Qt: Styling QTabWidget

I'm using Qt and I have a QTabWidget setup in the Qt Designer Editor, you can see it in picture 1. …

qt qtstylesheets qtabwidget
Qt Stylesheet for custom widget

I have several custom widget in my current project. I wish to apply stylesheets to them and when I do …

qt qtstylesheets
QComboBox style for choosen item in drop-down list

I want to style the highlighting of chosen item in drop-down of combobox. The difference to other questions is that …

qt qcombobox qtstylesheets
Set QGroupBox title font size with style sheets

I would like to be able to set the font size of the title of a QGroupBox using style sheets. …

qt stylesheet qtstylesheets
Qt 4: How to set outer border for QWidget so that its inner widgets are unaffected?

I have quite a strange problem. I have a QWidget with QHBoxLayout on it. The layout contains two QLabels. I …

css qt stylesheet qtstylesheets
How to set stylesheet for the current item in QTableView

When QTableView edit control is visible for the current item the shylesheet of the edit takes place. When there is …

qt qt5 qtableview qtstylesheets
Set background color of layout

As the layout object has no attribute ".setStyleSheet()", how can one set the background color for a given layout? As …

python qt pyqt qtstylesheets qlayout