#include "editorelement.h" #include EditorElement::EditorElement(QWidget *parent) : QWidget(parent) { this->layout = new QBoxLayout(QBoxLayout::TopToBottom, this); this->setLayout(layout); label = new QLabel(this); hint = new QLabel(this); edit = new QLineEdit(this); layout->addWidget(label); layout->addWidget(hint); layout->addWidget(edit); label->setText("test"); hint->setText("another test"); edit->setText("content test"); this->setStyleSheet("QWidget {border: 2px dashed red}"); } EditorElement::~EditorElement() { }