Thanks, I should have thought to look in the code, but that's
straightforward enough. I'm with you, I don't think it should use QPalette
because the default should definitely be white regardless of whether or
not you are using dark mode. I'm thinking separate functions to set/get
the background
void QPdfView::paintEvent(QPaintEvent *event)
{
Q_D(QPdfView);
QPainter painter(viewport());
painter.fillRect(event->rect(), palette().brush(QPalette::Dark));
painter.translate(-d->m_viewport.x(), -d->m_viewport.y());
for (auto it = d->m_documentLayout.pageGeometryAndScale.cbe
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 w