To add to @mrjj, the styles are free to ignore the palette or certain elements of the palette.
Please share any bug report you are opening so that other may find them more easily.
If only you want changed background color for QGraphicsScene, then:
Ok, I just realized that I was asking for QPalette::Window of the widget itself, not the application.
Nothing wrong with being stupid.
No one has replied
I understand you want to use the palettes but just as a note - you can also style a widget by name and that
way override the color.
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(255, 255, 255, 0));
OK, I found a solution.
Two methods have to be called in reverse order.
And now it works as desired.
Did two thing.
Using recommended code below, compilation Error appear ->"The program has unexpectedly finished"
myImage.scaled(1366,254, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
How to scale stylesheet to 1/4 of mainwindow using below code
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.