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부터는 최적화 플래그로 ` 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.