Book Image

QT5 Blueprints

By : Symeon Huang
Book Image

QT5 Blueprints

By: Symeon Huang

Overview of this book

Table of Contents (17 chapters)
Qt 5 Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Commonly encountered issues


Errors, or more appropriately, unexpected results, are definitely unavoidable during application development. Besides, there could also be compiler errors, or even application crashes. Please don't panic when you encounter these kinds of issues. To ease your pain and help you locate the problem, we have collected some commonly encountered and reproducible unexpected results and categorized them, as shown in the next sections.

C++ syntax mistakes

For programming beginners, or developers who are not familiar with C and C++, the syntax of C++ is not easy to remember. If there are any syntax mistakes, the compiler will abort with error messages. In fact, the editor will display tildes below problematic statements, as shown here:

Among all C++ syntax mistakes, the most common one is a missing semicolon (;). C++ needs a semicolon to mark the end of a statement. Therefore, line 7 and line 8 are equivalent to the following line:

    MainWindow w w.show();

This, in C++, is...