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 ,
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:
2nd case:
Qt Code:
{ color:white; }To copy to clipboard, switch view to plain text mode
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)");
Bookmarks