4#include <QGraphicsScene>
5#include <QGraphicsItem>
6#include <Kanoop/utility/loggingbaseclass.h>
7#include <Kanoop/gui/libkanoopgui.h>
17 public LoggingBaseClass
36 for(QGraphicsItem* item : items()) {
37 T candidate =
dynamic_cast<T
>(item);
38 if(candidate !=
nullptr) {
39 result.append(candidate);
54 for(QGraphicsItem* item : items()) {
55 T candidate =
dynamic_cast<T
>(item);
56 if(candidate !=
nullptr) {
QGraphicsScene subclass with logging support and typed-item search helpers.
QList< T > findChildItems() const
Return all scene items that dynamic_cast to type T.
T findFirstChildItem() const
Return the first scene item that dynamic_cast to type T.
GraphicsScene(QObject *parent=nullptr)
Construct with an optional parent object.