The following members of class QGraphicsView are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
(deprecated) 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)This function is deprecated. We strongly advise against using it in new code.
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.
See also drawForeground(), drawBackground(), and QGraphicsScene::drawItems().
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: