Cambios en Qt Print Support
Qt 6 son el resultado de un esfuerzo deliberado por hacer que el marco sea más eficiente y fácil de usar.
Intentamos mantener la compatibilidad binaria y de código fuente para todas las API públicas en cada versión. Sin embargo, algunos cambios eran inevitables para conseguir que Qt sea un marco de trabajo mejor.
En este tema resumimos esos cambios en Qt Print Support y ofrecemos orientación para gestionarlos.
Consolidación general de la API
Se han consolidado las diversas enumeraciones y tipos relacionados con page sizes, los márgenes y la orientación. Se han eliminado las API de QPrinter para establecer explícitamente los tamaños de papel y los márgenes; en su lugar, utilice 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.