- Hands-On GUI Programming with C++ and Qt5
- Lee Zhi Eng
- 197字
- 2021-08-27 19:00:13
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."
- ASP.NET Core 5.0開發(fā)入門與實戰(zhàn)
- Vue.js前端開發(fā)基礎(chǔ)與項目實戰(zhàn)
- Web全棧工程師的自我修養(yǎng)
- The Data Visualization Workshop
- 算法訓(xùn)練營:提高篇(全彩版)
- 網(wǎng)站構(gòu)建技術(shù)
- Windows內(nèi)核編程
- PHP+MySQL+Dreamweaver動態(tài)網(wǎng)站開發(fā)從入門到精通(第3版)
- Statistical Application Development with R and Python(Second Edition)
- 大學(xué)計算機基礎(chǔ)實驗指導(dǎo)
- QPanda量子計算編程
- Access數(shù)據(jù)庫應(yīng)用教程(2010版)
- HTML5與CSS3權(quán)威指南
- 零基礎(chǔ)PHP從入門到精通
- Unity虛擬現(xiàn)實開發(fā)圣典