Hi,
you could use:
QPrintPreviewDialog dlg(&printer, this);
dlg.showMaximized();
QList<QPrintPreviewWidget *> list = dlg.findChildren<QPrintPreviewWidget *>();
if(!list.isEmpty()) // paranoiac safety check
list.first()->setZoomMode(QPrintPreviewWidget::FitToWidth);
QPrintPreviewDialog dlg(&printer, this);
dlg.showMaximized();
QList<QPrintPreviewWidget *> list = dlg.findChildren<QPrintPreviewWidget *>();
if(!list.isEmpty()) // paranoiac safety check
list.first()->setZoomMode(QPrintPreviewWidget::FitToWidth);
To copy to clipboard, switch view to plain text mode
Lykurg
Bookmarks