Используйте css в qr c файле.
например, в css файле:
QWidget
{
background-color: #111a22;
color: #ffffff;
}
QMainWindow:hover
{
...etc
}
QListWidget::item:selected
{
border: 1.2px;
border-color: #562956;
border-style: outset;
border-radius: 1px;
}
QPushButton
{
border: 1.2px;
border-color: #562956;
border-style: outset;
border-radius: 2px;
height: 15%;
}
для загрузки в main. cpp
QFile *file = new QFile(":/style.css");
file->QIODevice::open(QFile::ReadOnly);
a.QApplication::setStyleSheet(file->QIODevice::readAll());
посмотрите на это: https://doc.qt.io/qt-5/stylesheet-reference.html