En esta página

Cambios en Qt Print Support

Qt 6 son el resultado del esfuerzo consciente por hacer el framework más eficiente y fácil de usar.

Intentamos mantener la compatibilidad binaria y de código fuente de todas las API públicas en cada versión. Pero algunos cambios eran inevitables en un esfuerzo por hacer de Qt un framework mejor.

En este tema resumimos esos cambios en Qt Print Support, y proporcionamos una guía para manejarlos.

Consolidación general de la API

Se han consolidado los distintos enums y tipos para page sizes, márgenes y orientación. QPrinter Se han eliminado las APIs para establecer explícitamente los tamaños de papel y los márgenes; utilice en su lugar QPagedPaintDevice::setPageLayout(), QPagedPaintDevice::setPageSize(), QPagedPaintDevice::setPageOrientation(), y 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.