File: qedittest.cpp

package info (click to toggle)
uim 1%3A0.4.6final1-3sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,072 kB
  • ctags: 5,615
  • sloc: lisp: 37,915; ansic: 27,718; sh: 13,684; cpp: 13,313; makefile: 729
file content (31 lines) | stat: -rw-r--r-- 604 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <qapplication.h>
#include <qlineedit.h>
#include <qtextedit.h>
#include <qsplitter.h>
#include <qvbox.h>
#include <qlabel.h>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QVBox page;

    QLabel *l = new QLabel("Edit Test", &page);
    l->setAlignment(Qt::AlignCenter);

    new QLabel(&page);

    QVBox *linev = new QVBox(&page);
    new QLabel("lineedit", linev);
    new QLineEdit(linev);

    QVBox *textv = new QVBox(&page);
    new QLabel("textedit", textv);
    new QTextEdit(textv);

    app.setMainWidget(&page);
    page.show();

    return app.exec();
}