[Interest] Background Color of QPdfView
Joshua Grauman
jnfo-d at grauman.com
Thu Dec 5 00:58:43 CET 2024
Hello,
I generate pdfs by using QPainter to paint onto a QPrinter. My
understanding is that the generated pdf has a transparent background, even
though most viewers view the pdf with a white background. I am able to
view the pdf with a different color background with Okular for example.
I'm wondering if there is any way to change the background color of
QPdfView (to black)? I tried changing the palette of QPdfView or change
it's style sheet but those didn't do it. Does anyone know if there is any
way to display the pdf with a different background color using QPdfView?
Josh
More information about the Interest
mailing list