stylesheet for Messagebox
How do we apply style sheets for the default Message box. Somehow the background color as well as the text color of the QMessagebox has become white. As the result, i cannot read the text, can only see the blue ok and cancel buttons.
the docs said
“The messagebox-text-interaction-flags property can be used to alter the interaction with text in the message box.”
I found an example which said
- this->setStyleSheet("style sheet for your QMessageBox");
- this->setStyleSheet(tmpStyleSheet);
how do i change the background and the text color. ?
This is my code.
- msgBox=QMessageBox::information(this,tr("Start checking"),tr("Set date "),QMessageBox::Ok|QMessageBox::Cancel);
If any one can give suggestions or the previously answered links,
Thank you
alfah
1 reply
You must log in to post a reply. Not a member yet? Register here!
