how to change background color of qpdfview
Solved
General and Desktop
-
I am testing the following example
https://doc.qt.io/qt-5/qtpdf-pdfviewer-example.htmltried to change the background color of qpdfview with stylesheet. No change. Any one had the same issue?
It is weird that class QPdfView is not documented here
https://doc.qt.io/qt-5.15/classes.html
Any reason?Qt 5.15.3 and Ubuntu 22.04
-
@JoeCFD The background of the page content or the background outside the page? The former is controlled by the PDF file itself.
You can adjust the other by adjusting the QPdfWidget::viewport() palette Palette::Dark: see How to set QPdfView's viewport background color?
-