855 questions
Score of 1
1 answer
93 views
Missing icons using qt-materials inside a virtual environment
Different behaviour of qt-materials inside virtual environment (venv)
I am currently developing a PySide6 application and using the qt-materials library to set the stylesheet of the application. ...
Score of 0
1 answer
169 views
How to remove the black line style from QDockWidget? [duplicate]
I have integrated QDockWidget windows in QMainWindow, but there is a thin black line (only 1px) under the TabBar. This line appears to be the color of the background. However, I have tried modifying ...
Score of 1
0 answers
206 views
Is there an equivalent of "em" for font sizes in PyQt6 StyleSheets?
In pyqt6, i am creating a fillable form. I'd like the first element in the form, the title, to be 25% larger than the rest of the elements in the form. In CSS, i'd do this by setting:
{font-size: 1....
Score of 1
0 answers
79 views
Is there a way to set all Qt qss properties to original state, as if they had never been set (ie prevent cascading up to a point)?
We have written a number of python / Qt tools, which when run standalone, look fine. Generally, the are using the platform style, and QLayouts, with very little specified in stylesheets.
But we also ...
Score of 1
1 answer
185 views
How do I change the color of the white select all cell on the top right corner? - PyQt5 QTableWidget [duplicate]
The white block on top right corner gets auto added whenever I insert a row.
It selects all rows and columns when I click on it just like in excel
I can see it makes space for S.nos; I've decided it'...
Score of 0
1 answer
259 views
QTableWidget cells background color has unwanted "rounded padding"
On Windows 11, when I set the background color of items in my QTableWidget using item.setBackground(QColor(210,210,210)), the color doesn't fill the cell entirely, there is some sort of padding with ...
Score of 0
1 answer
871 views
Pyside6 - Change svg icon color dynamically
I am trying to build a pyside6 application with a light mode and a dark mode. That means that my icons also need to be light and dark mode.
Now I was hoping to set the color of the QIcon SVGs inside ...
Score of 0
2 answers
154 views
How can I change the white color in QComboBox?
I would like to change the color or adjust the size of this rectangle behind the open Combobox
I noticed that there is a problem with the increased size of this white background and the offset options ...
Score of 0
0 answers
64 views
PyQtDarkTheme: Check‑mark missing for current item in QComboBox popup
I'm using PyQt6 with PyQtDarkTheme and have encountered a UI issue:
When opening a QComboBox popup, the currently selected item doesn't show the usual ✔ checkmark, or it's so low-contrast that it's ...
Score of 0
0 answers
134 views
How do I set the style properties of checkboxes in a QTableView without overriding its other default properties?
I'm trying to set the border colour of checkboxes in a QTableView.
I tried using setStyleSheet, but this just overrides the entire checkbox style, and removes the tick:
table_view.setStyleSheet(
&...
Score of 1
0 answers
22 views
Styling a PyQT push button for rich text with QSS for different text and background-color in checked state [duplicate]
I have created a push button QPushButtonRT capable of rendering rich text from QPushButton and QLabel (which works). The code is taken from another StackOverflow question but I forgot to write down ...
Score of 1
0 answers
101 views
QTreeView dotted rectangle around selected (or active) cell
I'm using QStandardItemModel to populate a QTreeView which contain more than a single column (i.e., a fusion of ListView and TreeView functionality). The problem is, no matter what I do, I cannot get ...
Score of 1
0 answers
92 views
PyQt5 QSilder: Change handle on hover groove
I want to design my Video Player like the one on Youtube. The slider is a thin line and when the mouse hovers the slider its handle change to a cycle.
To get this work I created a class, inherited ...
Score of 1
1 answer
166 views
QT QSlider stylesheet causes the rounded border to disappear
I set the QSlider in QT using the qss style, which I set at the beginning
QSlider::groove: horizontal {
background: rgb(217,221,227);
height: 14px;
border-radius: 7px;
}
QSlider::handle: ...
Score of 0
1 answer
675 views
PyQt6 QSS Style Sheet with Embedded SVG
I am working on putting together a QSS Stylesheet template that I can use for all of my PyQt6 applications. When I use the stylesheet to modify the style of a QComboBox, I lose the down arrow. It's my ...