April 2018
Intermediate to advanced
404 pages
8h 27m
English
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: "We call the test() function at the MainWindow constructor."
A block of code is set as follows:
void MainWindow::test()
{
int amount = 100;
amount -= 10;
qDebug() << "You have obtained" << amount << "apples!";
}
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
test();
}
Any command-line input or output ...
Read now
Unlock full access