Top "Qtstylesheets" questions

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

Qt StyleSheet Text Alignment

I am trying to change the appearance of a QGroupbox. The problem is about the border of it. After changing …

qt qtstylesheets
QComboBox text colour won't change with style sheet

I'm trying to style a combobox in QT5. I'm using QT Creator for the layout and loading an app-wide style …

qt qt5 qtstylesheets
Center the Text of QTextEdit horizontally and vertically

I want to center the text of my QTextEdit horizontally and vertically. I tried this, but it didn't work. m_…

c++ qt qtextedit qtstylesheets
Qt Stylesheets: How to apply style to menus? How to remove blue tinge around QTextEdit?

I am trying to make the menubar a gradient black colour and that works fine, except for the menu headings. …

qt4.7 qmenu qtstylesheets qmenubar
Qt: Applying stylesheet on QScrollArea making horizontal scrollbar disappear but working perfectly for vertical scrollbar

I am trying to apply some style-sheet for scrollbars of QScrollArea and my style sheet as follows. QScrollBar:vertical { border-color: …

qt qtstylesheets qscrollarea
Qt: change font weight

I would like to have my text in QLabel somewhere between bold and normal style and I believe that setting …

c++ qt fonts qtstylesheets
How to color a PyQt QTabwidget

I have a PyQt main window that contains a QTabWidget. The tab widget contains a few buttons and text boxes. …

python pyqt qtstylesheets qtabwidget qpalette
QComboBox AbstractItemView::item

Is there a way I could increase the height of the items, which are listed in a QComboBox control ? I …

qt qt4 qcombobox qtstylesheets
Setting QDockWidget::title StyleSheet

My initial problem was to make QDockWidget title bold. I tried this and it worked: myDock->setStyleSheet("QDockWidget { font: …

qt qdockwidget qtstylesheets
How to set QPushButton stylesheet affecting buttons size?

When I QApplication::setStyleSheet() with the following stylesheet QPushButton { border-radius: 2px; padding: 0.2em 0.2em 0.3em 0.2em; border: 1px solid rgb(100, 100, 100); …

qt stylesheet qpushbutton qtstylesheets