このページについて

変更点Qt Print Support

Qt 6の変更点は、フレームワークの効率性と使いやすさを向上させるための意図的な取り組みによるものです。

各リリースにおいて、すべての公開 API についてバイナリ互換性とソース互換性を維持するよう努めています。しかし、Qt をより優れたフレームワークにするための取り組みにおいて、一部の変更は避けられませんでした。

このトピックでは、Qt Print Support におけるそれらの変更点をまとめ、それらに対処するためのガイダンスを提供します。

API の全般的な統合

page sizes 、余白、向きに関するさまざまな列挙型および型が統合されました。QPrinter 用紙サイズや余白を明示的に設定するための API は削除されました。代わりに、QPagedPaintDevice::setPageLayout()、QPagedPaintDevice::setPageSize()、QPagedPaintDevice::setPageOrientation()、および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.