|
KanoopGuiQt 1.3.0
Qt GUI utility library
|
|
QGraphicsScene subclass with logging support and typed-item search helpers. More...
#include <graphicsscene.h>
Inheritance diagram for GraphicsScene:
Collaboration diagram for GraphicsScene:Public Member Functions | |
| GraphicsScene (QObject *parent=nullptr) | |
| Construct with an optional parent object. | |
| template<typename T > | |
| QList< T > | findChildItems () const |
| Return all scene items that dynamic_cast to type T. | |
| template<typename T > | |
| T | findFirstChildItem () const |
| Return the first scene item that dynamic_cast to type T. | |
QGraphicsScene subclass with logging support and typed-item search helpers.
GraphicsScene adds findChildItems<T>() and findFirstChildItem<T>() template helpers that search all items in the scene and return only those that dynamic_cast to the requested pointer type.
Definition at line 16 of file graphicsscene.h.
|
explicit |
Construct with an optional parent object.
| parent | Optional QObject parent |
|
inline |
Return all scene items that dynamic_cast to type T.
| T | Pointer type to search for (must derive from QGraphicsItem) |
Definition at line 33 of file graphicsscene.h.
|
inline |
Return the first scene item that dynamic_cast to type T.
| T | Pointer type to search for (must derive from QGraphicsItem) |
Definition at line 51 of file graphicsscene.h.