Obsolete Members for QGraphicsView
QGraphicsView クラスの以下のメンバーは非推奨となっています。これらは、古いソースコードが引き続き動作するように提供されているものです。新しいコードでの使用は強く推奨しません。
保護された関数
(deprecated) virtual void | drawItems(QPainter *painter, int numItems, QGraphicsItem *[] items, const QStyleOptionGraphicsItem[] options) |
メンバ関数のドキュメント
[virtual protected, deprecated] void QGraphicsView::drawItems(QPainter *painter, int numItems, QGraphicsItem *[] items, const QStyleOptionGraphicsItem[] options)
この関数は非推奨です。新しいコードでの使用は強く推奨しません。
背景の描画後、前景の描画前に、painter を使用してシーン内のitems のアイテムを描画します。numItems は、items 内のアイテム数およびoptions 内のオプションの数です。options はstyleoptionsのリストであり、各アイテムごとに1つずつ指定されます。このビューに対してカスタムなアイテム描画を行うには、この関数を再実装してください。
デフォルトの実装では、シーンの drawItems() 関数が呼び出されます。
Qt 4.6 以降、最適化フラグとして `QGraphicsView::IndirectPainting ` が指定されない限り、この関数は呼び出されなくなりました。
drawForeground()、drawBackground()、およびQGraphicsScene::drawItems()も参照してください 。
© 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.