stylesheet inherit in QT Designer buttons and widgets

Viewed 81

I am designing a UI in QT Designer. I added background image to the main window, and same is inherited to the buttons, and widgets inside the main window,

How can I stop this auto inherit and keep default settings for the objects inside the main window ?

Thanks in Advance !!.

1 Answers

Use it like this:

.QMainWindow {
    background-image: your image;
}
Related