November 2014
Beginner to intermediate
264 pages
5h 32m
English
All the way back in Chapter 1, Getting Started with Qt Creator, I told you to always mark your strings for localization using the tr and qsTr functions: tr for C++ and qsTr for QML strings. Doing so has two key advantages:
Let's examine the use of tr in more detail. All Qt objects that include the Q_OBJECT macro in their declaration include the tr function. You've seen it with one argument, as follows:
button = new QPushButton(tr("&Quit"), this);The leading ...
Read now
Unlock full access