As you write code Qt Creator checks code syntax. When Qt Creator spots a syntax error in your code it underlines it and shows error details when you move the mouse pointer over the error.
In the following figure, a semicolon is missing at the end of the line.

In the following figure, the type is unknown.
