1 #include <QApplication>
9 #include "dialoglineedit.h"
11 int main(int argc
, char *argv
[])
13 QApplication
app(argc
, argv
);
15 // QMainWindow window;
18 QFormLayout
* layout
= new QFormLayout();
19 /* layout->setSpacing(-1);
20 this->setContentsMargins(0,0,0,0);*/
21 window
.setLayout(layout
);
27 DialogLineEdit
* hello
= new DialogLineEdit();
29 hello
->setCaption("YOYOYOOYOYOYY");
30 layout
->addWidget(hello
);
32 DialogLineEdit
* hello2
= new DialogLineEdit();
33 hello2
->setMode(false);
34 hello2
->setCaption("YOYOYOOYOYOYY");
35 layout
->addWidget(hello2
);
41 QLineEdit* hello = new QLineEdit();
43 layout->addWidget(hello);
45 QLineEdit* hello2 = new QLineEdit();
46 layout->addWidget(hello2);
50 // DialogLineEdit helloo(&window);
51 // window.addWidget(hello);
53 // QPushButton quit("Quit", &window);
54 // quit.setFont(QFont("Times", 18, QFont::Bold));
55 // helloo.setGeometry(10, 40, 180, 40);
56 // QObject::connect(&quit, SIGNAL(clicked()), &app, SLOT(quit()));