Conventions used
There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "As could be seen in the previous example, Qt Test defines macros to specify pass/fail criteria for tests, namely, QCOMPARE() and QVERIFY()."
A block of code is set as follows:
QSignalSpy spy(tstPushBtn, SIGNAL(clicked())); QTest::mouseClick(tstPushBtn, Qt::LeftButton);
QCOMPARE(spy.count(), 1);
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
QSignalSpy spy(tstPushBtn, SIGNAL(clicked())); QTest::mouseClick(tstPushBtn, Qt::LeftButton);
QCOMPARE(spy.count(), 1);
Any command-line input or output is written as follows:
$ mkdir Qt
$ cd Qt
Bold: Indicates a new term, an important word, or words that you see on screen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Unfortunately, results displayed in the Test Result pane don't seem to work with QML tests with the Qt Creator version used in this book. We have to run a QML test project in the Projects view."