0

I am trying to set the background image of the mainwindow through setStyleSheet() but this also applies the image to its children including textbrowsers and TextEdit. How can I accomplish this without doing so?

Vishaal Shankar
  • 1,648
  • 14
  • 26
Abhi Garg
  • 73
  • 7
  • 1
    How are you trying to set the background image ? Add the code that you have done with a [Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve) – Vishaal Shankar Mar 05 '18 at 05:23

1 Answers1

0

Try to add What you have tried so far,with out that we cant help. Try the below one

setStyleSheet("MainWindow {background-image:url(:/files/MainPic/Technology-Banner1.jpg)}");
Mohan Srinivas
  • 302
  • 3
  • 13