feat: add node graphic item

This commit is contained in:
parker
2025-06-20 03:42:27 +01:00
parent 7394f72f51
commit cf876320d8
6 changed files with 57 additions and 11 deletions

View File

@@ -0,0 +1,9 @@
#include "gui/network/NodeGraphic.h"
NodeGraphic::NodeGraphic(QGraphicsItem *parent)
{
title_ = new QGraphicsTextItem(this);
title_->setPlainText("hello world!");
setFlag(QGraphicsItem::ItemIsMovable);
}