[Qt-interest] How to add a background image for MainWindow
Kermit Mei
kermit.mei at gmail.com
Thu Jun 18 03:25:34 CEST 2009
Hello, community!
I implemented a MainWindow which inherited from QWidget. Now, I need to
add an background for it. I use
setStyleSheet("background-image: url(:/images/background.jpg)");
in MainWindow::MainWindow(...), but all the widgets include all the
buttons on it has a background from background.jpg, it looks very
confused.
How can I correct it?
Thanks:)
More information about the Qt-interest-old
mailing list