Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi, is there a way to customise the QPrintPreviewWidget background color. The area where the pages are painted on...?
Greetings Nando
Hi,
Out of curiosity, what are you trying to achieve ?
I just want to adjust the background color to our style guide.
You can try with a style sheet but I am not sure it's not a native widget like the QPrintDialog.
@SGaist Hi, i tried it with stylesheet, but it seems not to work. I just need to change the default background color of the QPrintPreviewWidget...
How did you do that ?
@SGaist I tried like this:
QPrintPreviewWidget { background-color: #FEA0A0; }
@Nando, @SGaist QPrintPreviewWidget used QGraphicsView in source code so solution in qss is
QGraphicsView { qproperty-backgroundBrush: "red"; }