diff --git a/src/gui/painting/qpdf.cpp b/src/gui/painting/qpdf.cpp index f44a95ae7c..73117d38fc 100644 --- a/src/gui/painting/qpdf.cpp +++ b/src/gui/painting/qpdf.cpp @@ -1436,7 +1436,7 @@ int QPdfEngine::metric(QPaintDevice::PaintDeviceMetric metricType) const QPdfEnginePrivate::QPdfEnginePrivate() : clipEnabled(false), allClipped(false), hasPen(true), hasBrush(false), simplePen(false), needsTransform(false), pdfVersion(QPdfEngine::Version_1_4), - colorModel(QPdfEngine::ColorModel::RGB), + colorModel(QPdfEngine::ColorModel::Auto), outDevice(nullptr), ownsDevice(false), embedFonts(true), m_pageLayout(QPageSize(QPageSize::A4), QPageLayout::Portrait, QMarginsF(10, 10, 10, 10)) diff --git a/src/gui/painting/qpdfwriter.cpp b/src/gui/painting/qpdfwriter.cpp index b3b6f3d310..50db7465bd 100644 --- a/src/gui/painting/qpdfwriter.cpp +++ b/src/gui/painting/qpdfwriter.cpp @@ -304,7 +304,7 @@ bool QPdfWriter::newPage() QPen and QBrush). \value RGB All colors are converted to RGB and saved as such in the - PDF. This is the default. + PDF. \value Grayscale All colors are converted to grayscale. For backwards compatibility, they are emitted in the PDF output as RGB colors, with @@ -314,6 +314,7 @@ bool QPdfWriter::newPage() \value Auto RGB colors are emitted as RGB; CMYK colors are emitted as CMYK. Colors of any other color spec are converted to RGB. + This is the default since Qt 6.8. \sa QColor, QGradient */