Thanks guys
example of stylesheet inside the mainwindow.cpp
void MainWindow::testStyleSheet1(){
this->setStyleSheet(" QPushButton:hover { color: rgb(53, 201, 255) }QPushButton , QLineEdit, QComboBox, QLabel, QMenuBar { color: blue }");
}
void MainWindow::testStyleSheet1(){
this->setStyleSheet(" QPushButton:hover { color: rgb(53, 201, 255) }QPushButton , QLineEdit, QComboBox, QLabel, QMenuBar { color: blue }");
}
To copy to clipboard, switch view to plain text mode
I also use to revert to the default:
void MainWindow::testStyleSheetdefault(){
this->setStyleSheet(" default");
}
void MainWindow::testStyleSheetdefault(){
this->setStyleSheet(" default");
}
To copy to clipboard, switch view to plain text mode
hope this help
Bookmarks