Obsolete Members for QGraphicsView

以下成員源於類 QGraphicsView 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

保護函數

(obsolete) virtual void drawItems (QPainter * painter , int numItems , QGraphicsItem *[] items , const QStyleOptionGraphicsItem[] options )

成員函數文檔編製

[virtual protected] void QGraphicsView:: drawItems ( QPainter * painter , int numItems , QGraphicsItem *[] items , const QStyleOptionGraphicsItem [] options )

Draws the items items in the scene using painter , after the background and before the foreground are drawn. numItems is the number of items in items and options in options . options is a list of styleoptions; one for each item. Reimplement this function to provide custom item drawing for this view.

The default implementation calls the scene's drawItems() function.

Since Qt 4.6, this function is not called anymore unless the QGraphicsView::IndirectPainting flag is given as an Optimization flag.

另請參閱 drawForeground (), drawBackground (),和 QGraphicsScene::drawItems ().