Hi to all,
how can I run a QPrintPreviewDialog "maximized" and "Fit To Width" (without create a my own QPrintPreviewWidget) ?
thanks!!!
Hi to all,
how can I run a QPrintPreviewDialog "maximized" and "Fit To Width" (without create a my own QPrintPreviewWidget) ?
thanks!!!
Hi,
you could use:
Qt Code:
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
cydside (19th June 2009)
Great!!!!!!!!!!!!!!!!!!!
Please Lykurg send me your snapshot, I will replace the one on my desktop
Thanks!
Bookmarks