PDA

View Full Version : Change background for Widget by StyleSheet, buttons doesn’t show 3D frame.



Kevin Hoang
20th March 2010, 15:30
QWidget {
background: rgb(8, 8, 8);
}

somebody help me!

Lykurg
20th March 2010, 17:25
its because your style sheet also affects the background of your buttons. Is it only one specific widget? If so use th # selector with the object name. Or use ".QWidget".

Kevin Hoang
21st March 2010, 09:20
Thank you!

It works fine. If I use the StackedWidget, the designer doesn't show correct.