PDA

View Full Version : How to Apply stylesheet to QMessageBox?



sudhansu
7th January 2010, 05:51
Hi All,
i need to apply background color as gray in messagebox;
i wrote like


QMessagebox msg(this);
msg.setStyleSheet("background-color: gray ; color : gray");

But its not working. Can any body help me?

sudhansu
7th January 2010, 08:32
Hi All,
i soved this problem. Created a pointer to QMessagebox in header file, and applied stylesheet to it.