Qt 5.10 Book Examples
main.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // main.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 <QtCore>
12 
13 // ----------------------------------------------------------------------
14 int main(int, char**)
15 {
16  qDebug() << "Build date:"
17  << QLibraryInfo::buildDate().toString("yyyy-MM-dd");
18  qDebug() << "License Products:"
19  << QLibraryInfo::licensedProducts();
20  qDebug() << "Licensee:"
21  << QLibraryInfo::licensee();
22  qDebug() << "Is Debug Build:"
23  << QLibraryInfo::isDebugBuild();
24 
25  qDebug() << "Locations";
26  qDebug() << " Headers:"
27  << QLibraryInfo::location(QLibraryInfo::HeadersPath);
28  qDebug() << " Libraries:"
29  << QLibraryInfo::location(QLibraryInfo::LibrariesPath);
30  qDebug() << " Binaries:"
31  << QLibraryInfo::location(QLibraryInfo::BinariesPath);
32  qDebug() << " Prefix"
33  << QLibraryInfo::location(QLibraryInfo::PrefixPath);
34  qDebug() << " Documentation: "
35  << QLibraryInfo::location(QLibraryInfo::DocumentationPath);
36  qDebug() << " Plugins:"
37  << QLibraryInfo::location(QLibraryInfo::PluginsPath);
38  qDebug() << " Data:"
39  << QLibraryInfo::location(QLibraryInfo::DataPath);
40  qDebug() << " Settings:"
41  << QLibraryInfo::location(QLibraryInfo::SettingsPath);
42  qDebug() << " Examples:"
43  << QLibraryInfo::location(QLibraryInfo::ExamplesPath);
44 }
int main(int argc, char **argv)
Definition: main.cpp:15