⚠️ Forum Maintenance: Feb 6th, 8am - 14pm (UTC+2)
[Workaround]Background image of one form carried over the next !!!
I have about 10 forms in my project.
For the main form i havnt put any background image. Its a default form with an array of manually created buttons. In the next form , I've put a background image using the designer, jus applying the stylesheet. When i get back to the main form, the background image is carried to the main form, the form as well as all the buttons have the same background image :(.
I dont want that.
Could you tell me wat possibly could have gone wrong.
lgeyer last edited by
Is it possible that you have applied the background image to QWidget instead of a specific widget?
The main window is of QMainWindow and the Settings form is also of QMainWindows.
I noticed tht whn u jum from dialog form to a mainwindow form, this does not happen.
P.S I think the quick fix to the problem is to put a background image to the main form also. Cuz its only when there is no background image, the previous image is loaded
DenisKormalev last edited by
Looks like you've setted this stylesheet for all QMainWindow's, not for only one.
No, only for settings form I've set a stylesheet, that too using designer.Ive put a jpeg image as background.
This is not really a solution but ive found out a workaround, put a background image for each form, so that it doesn get carried over.
loladiro last edited by
Maybe "this":http://doc.qt.nokia.com/4.7/stylesheet-examples.html#complex-selector-example can help you (especially filtering by object name).