In questa pagina

Modifiche a Qt Print Support

Qt 6 sono il risultato di uno sforzo mirato a rendere il framework più efficiente e facile da usare.

Cerchiamo di mantenere la compatibilità binaria e di codice sorgente per tutte le API pubbliche in ogni versione. Tuttavia, alcune modifiche erano inevitabili nell’ottica di migliorare Qt come framework.

In questa sezione riassumiamo tali modifiche in Qt Print Support e forniamo indicazioni su come gestirle.

Consolidamento generale delle API

Le varie enumerazioni e i tipi relativi a page sizes, margini e orientamento sono stati consolidati. Le API QPrinter per impostare esplicitamente i formati carta e i margini sono state rimosse; utilizzare invece QPagedPaintDevice::setPageLayout(), QPagedPaintDevice::setPageSize(), QPagedPaintDevice::setPageOrientation() e QPagedPaintDevice::setPageMargins().

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.