1 Attachment(s)
Change frame background color
I would like to change the background color of a frame (on a mouseEnter event). I have tried using
Code:
this->setStyleSheet("background-color: red");
but as you can see in the attached image, the formatting gets all messed up. How do I change only the background color, leaving everything else intact?
Re: Change frame background color
You can mention the class you want to set the stylesheet for, so that it doesnt affect other widgets.
eg. setStyleSheet(" .QFrame { background-color : red } ");