I'm creating a wizard with QWizard and QWizardPages. I want to set a background image for each page but nothing I'm trying is working.

wizMain -> QWizard
wizLogin -> QWizardPage
wizPage2 -> QWizardPage

I set the CSS of wizMain to:

Qt Code:
  1. background-image: url(:/img/Login.png);
To copy to clipboard, switch view to plain text mode 

And it displays the image on all the pages. If I try to target the QWizardPage individually, it fails.

Qt Code:
  1. #wizLogin {
  2. background-image: url(:/img/Login.png);
  3. }
To copy to clipboard, switch view to plain text mode 

Adding that to the wizMain CSS fails. Adding it to the wizLogin CSS fails. Even if I do the background-image alone, it fails. I don't know what's going on and this seems to be something trivial for designing UIs.

Any ideas?

Thanks.