PDA

View Full Version : Unable to load background image in Main Window



bedbuffer
16th December 2010, 09:40
Hi All,

I'm running my QT app through command line with a parameter -stylesheet. The styles for the controls work but not when I'm trying to load a background image for the MainWindow. I tried:

QMainWindow{
background-image:url(image_256_8bit_latest_back.png);
}

Can somebody tell me what's wrong with this StyleSheet?