Bharani
0
Q:

change group box color pyqt5

QGroupBox {
    background-color: red;
    margin-top:1em;
}
QGroupBox QGroupBox {
    background-color: green;
}
QGroupBox::title {
    subcontrol-origin: padding;
    subcontrol-position: left top;
    background: transparent;
    margin-top: -2.5em;
}
0
self.ui = uic.loadUi('adminmainwindow_static.ui', self)  # Load the .ui file

self.ui.setStyleSheet("QGroupBox#groupBox_f1r1b1 { color: 1px solid blue;}")
0

New to Communities?

Join the community