Nominate our 2022 Qt Champions!

Changing button color doesn't work !

  • When I change the color of the Button "OK", it doesn't work

    This is what happen:

    I don't even see the button "OK", so I want to change the button color in white, but it doesn't work when i write this :
    msgBox.setStyleSheet("background : solid black; QMessageBox QPushButton{color: white; }");

  • @fres try setting like this

  • Thanks it works!

Log in to reply