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 은 각 항목에 대해 하나씩 스타일옵션 목록입니다. 이 함수를 다시 구현하여 이 뷰에 대한 사용자 지정 항목 그리기를 제공합니다.
기본 구현은 장면의 drawItems() 함수를 호출합니다.
Qt 4.6부터 이 함수는 Optimization 플래그로 QGraphicsView::IndirectPainting 플래그가 지정되지 않는 한 더 이상 호출되지 않습니다.
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.