Qt 5.10 Book Examples
chapter30
Hello
hello.cpp
Go to the documentation of this file.
1
// ======================================================================
2
// hello.cpp --
3
// ======================================================================
4
// This file is a part of the book
5
// "Qt 5.10 Professional programming with C++"
6
// http://qt-book.com
7
// ======================================================================
8
// Copyright (c) 2017 by Max Schlee
9
// ======================================================================
10
11
#include <QtWidgets>
12
int
main
(
int
argc,
char
** argv)
13
{
14
QApplication app(argc, argv);
15
16
QTranslator translator;
17
translator.load(
":/main_ru.qm"
);
18
app.installTranslator(&translator);
19
20
QLabel
lbl
(QObject::tr(
"Hello"
));
21
22
lbl
.show();
23
return
app.exec();
24
}
main
int main(int argc, char **argv)
Definition:
hello.cpp:12
lbl
QLabel * lbl(const QPainter::CompositionMode &mode)
Definition:
main.cpp:14
Generated by
1.8.14