Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Problem in setting image with stylesheet?
-
I have used following code for setting image through stylesheet but the image is displaying but it also displaying on any child widget over it.How i can avoid this
@QWidget *wid = new QWidget;
wid->setStyleSheet ("QWidget{background-image: url(:/wait_for_accept)}");@
-
style sheets are always forwarded to child widgets. and you define it for QWidget which means for all widget classes. Give your widget a dedicated name and use those in the style sheet.