DumpView::DumpView(int id, const QString &source, QWidget *parent) : QMainWindow(parent), ui(new Ui::DumpView) { this->setAttribute(Qt::WA_AcceptDrops); ui->setupUi(this); SetText(source); QGraphicsScene * scene = new QGraphicsScene(ui->DumpLabel->sceneRect()); scene->addSimpleText(source); ui->DumpLabel->setScene(scene); ui->DumpLabel->show(); setWindowTitle("Node " + QString::number(id) +" content"); }