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)
この関数は非推奨である。新しいコードでは使用しないことを強くお勧めします。
シーン内のアイテムitems を、背景の後、前景が描画される前に、painter を使用して描画します。numItems はitems のアイテム数、options のオプションです。options は styleoptions のリストで、各アイテムに1つずつ指定します。このビューのカスタムアイテム描画を提供するために、この関数を再実装してください。
デフォルトの実装では、シーンの drawItems() 関数を呼び出します。
Qt 4.6 以降、この関数は、QGraphicsView::IndirectPainting フラグが Optimization フラグとして与えられていない限り、呼び出されなくなりました。
drawForeground(),drawBackground(),QGraphicsScene::drawItems()も参照してください 。
© 2025 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.