Hi ,
i need to change the PushButton Text Color to White . Please Help me .
I had done Push Button as transparent so i need to change the color
Printable View
Hi ,
i need to change the PushButton Text Color to White . Please Help me .
I had done Push Button as transparent so i need to change the color
Hi!
Just change the buttons stylesheet or it's parents stylesheet if you want to change the foreground color of multiple buttons.
In the 1st case:
Code:
color:white;
2nd case:
Hello my friend try this in your program, I've tested it on my project it worked rgb(255, 0, 0) stands for red background color and rgb(255, 255, 255) for white text color.
m_ui->pushButton_filter->setAutoFillBackground(true);
m_ui->pushButton_filter->setStyleSheet("background-color: rgb(255, 0, 0); color: rgb(255, 255, 255)");