官术网_书友最值得收藏!

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: "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 is written as follows:

********* Start testing of MainWindow ********* 
Config: Using QtTest library 5.9.1, Qt 5.9.1 (i386-little_endian-ilp32 shared (dynamic) debug build; by GCC 5.3.0) 
PASS   : MainWindow::initTestCase() 
PASS   : MainWindow::_q_showIfNotHidden() 
PASS   : MainWindow::testString() 
PASS   : MainWindow::testGui() 
PASS   : MainWindow::cleanupTestCase() 
Totals: 5 passed, 0 failed, 0 skipped, 0 blacklisted, 880ms 
********* Finished testing of MainWindow ********* 

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "The third option is Toggle Bookmark, which lets you set a bookmark for your own reference."

Warnings or important notes appear like this.
Tips and tricks appear like this.
主站蜘蛛池模板: 晋城| 汝城县| 克拉玛依市| 岱山县| 莎车县| 葫芦岛市| 湛江市| 葵青区| 汪清县| 栖霞市| 东源县| 松滋市| 济阳县| 南城县| 黑龙江省| 张家口市| 阿城市| 北票市| 化德县| 涞水县| 丹凤县| 旺苍县| 娱乐| 库车县| 辰溪县| 沂南县| 剑阁县| 柘城县| 当涂县| 太仆寺旗| 色达县| 兴仁县| 方正县| 丰顺县| 元朗区| 建瓯市| 墨脱县| 中阳县| 清流县| 城口县| 临潭县|