This repository has been archived on 2020-12-30. You can view files and clone it, but cannot push or open issues or pull requests.
NetworkPacketComposer/guidededitorelement.cpp

28 lines
563 B
C++

#include "guidededitorelement.h"
#include <QBoxLayout>
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()
{
}