QPrintDialog preview on Windows
-
Is there a way to have a document generate a preview in the native Windows print dialog?
I'm printing some basic text/table reports from an SQL database via the QTextDocument method found on this thread: https://forum.qt.io/topic/91015/export-qtableview-to-pdf
-
@Pl45m4 Thanks for the reply.
QPrintPreviewDialog seems redundant based on my testing. For example, the page orientation selected on the preview dialog does not get passed to to the native Windows print dialog. The "print" toolbar button also brings up the native Windows print dialog with preview anyway. Because of this, I was hoping there was a Windows API that someone else had found similar to the paintRequested signal of QPrintPreviewDialog that would allow the preview to be directly shown on the QPrintDialog.
https://doc.qt.io/qt-6/qprintpreviewdialog.html#paintRequested