29 #include <QApplication>
30 #include <QPushButton>
31 #include <QPlainTextEdit>
32 #include <QCalendarWidget>
33 #include <QVBoxLayout>
43 button =
new QPushButton(
"pushbutton", stackWidget);
46 QString s =
"foo bar bar foo foo bar bar foo";
47 for (
int i = 0;
i < 10; ++
i) {
54 plainTextEdit->move(30, 70);
55 plainTextEdit->resize(100, 100);
56 calendar->
move(80, 40);
90 void stackCalendarUnderTextEdit()
101 int main(
int argc,
char **argv)
small capitals from c petite p scientific i
[1]
The QApplication class manages the GUI application's control flow and main settings.
void addWidget(QWidget *, int stretch=0, Qt::Alignment alignment=Qt::Alignment())
The QHBoxLayout class lines up widgets horizontally.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
The QPlainTextEdit class provides a widget that is used to edit and display plain text.
void appendPlainText(const QString &text)
void setWordWrapMode(QTextOption::WrapMode policy)
The QString class provides a Unicode character string.
The QVBoxLayout class lines up widgets vertically.
int main(int argc, char **argv)
GLfloat GLfloat GLfloat w
[0]
QApplication app(argc, argv)
[0]