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

Conventions

You will also find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "This API is centered on QNetworkAccessManager, which handles the complete communication between your game and the Internet."

A block of code is set as follows:

QNetworkRequest request;
request.setUrl(QUrl("http://localhost/version.txt"));
request.setHeader(QNetworkRequest::UserAgentHeader, "MyGame");
m_nam->get(request);

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

void FileDownload::downloadFinished(QNetworkReply *reply) {
 const QByteArray content = reply->readAll();
  m_edit->setPlainText(content);
 reply->deleteLater();
}

Any command-line input or output is written as follows:

git clone git://code.qt.io/qt/qt5.git
cd qt5
perl init-repository

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "On the Select Destination Location screen, click on Next to accept the default destination."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 辽阳市| 尚义县| 渑池县| 延边| 错那县| 澳门| 虞城县| 沂源县| 怀远县| 赤水市| 漳浦县| 湄潭县| 翁牛特旗| 钦州市| 宁夏| 房山区| 宝兴县| 乐清市| 荥阳市| 平昌县| 思茅市| 金塔县| 改则县| 洪洞县| 玛多县| 武威市| 札达县| 沅陵县| 潍坊市| 安溪县| 高平市| 轮台县| 诸城市| 延边| 天等县| 南昌市| 西吉县| 溧水县| 天津市| 花莲县| 开封县|