#include "mainwindow.h" #include "../QtGuidedEditor/qgewidget.h" #include "flowlayout.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { list = new QList(); editor = new QWidget(this); centralLayout = new FlowLayout(editor); editor->setLayout(centralLayout); centralLayout->addWidget(new EditorElement(this)); centralLayout->addWidget(new EditorElement(this)); this->setCentralWidget(editor); QString style = QString( "QWidget {" "border-radius: 5px;" "background: white }" "QLabel {border: 2px dashed black; background: gray; " "border-radius: 5px;}" "QLineEdit {border: 2px dashed black;background: dark-gray;" "border-radius: 5px;}" ); editor->setStyleSheet(style); } MainWindow::~MainWindow() { }