Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QPrintPreviewDialog print all pages though page range is selected



  • Version: QT Qt5.7.1_2013

    I used QPrintPreviewDialog to preview whole printed document which is render in preview(QPrinter*)

    connect(&previewDialog, SIGNAL(paintRequested(QPrinter*)), this, SLOT(preview(QPrinter*)));
    

    then , I use the provided print button to print specified page of the document (eg 1 of 5 pages). But it always print all the pages.



  • @znan

    Hi and welcome to devnet forum

    The QPrintDialog functionality is typically using the native features of your OS. Therefore, it is outside of Qt.
    You would need to check if the same issue is occuring while using the same procedure with other applications using the native print dialog from your OS.


Log in to reply