久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

//![0] 在 Qt 源代碼中

//! [0] in Qt source code(//![0] 在 Qt 源代碼中)
本文介紹了//![0] 在 Qt 源代碼中的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

是什么意思//![n] (n = 0, 1, 2 ...) Qt 示例項(xiàng)目中 C++/QML 源代碼中的標(biāo)記?

What is the meaning of the //! [n] (n = 0, 1, 2 ...) markup in the C++/QML sources in the Qt sample projects?

例如:

//! [0]
GLWidget::GLWidget(Helper *helper, QWidget *parent)
    : QGLWidget(QGLFormat(QGL::SampleBuffers), parent), helper(helper)
{
    elapsed = 0;
    setFixedSize(840, 400);
    setAutoFillBackground(false);
}
//! [0]

//! [1]
void GLWidget::animate()
{
    elapsed = (elapsed + qobject_cast<QTimer*>(sender())->interval()) % 1000;
    repaint();
}
//! [1]

//! [2]
void GLWidget::paintEvent(QPaintEvent *event)
{
    QPainter painter;
    painter.begin(this);
    painter.setRenderHint(QPainter::Antialiasing);
    helper->paint(&painter, event, elapsed);
    painter.end();
}
//! [2]

推薦答案

盡管存在常見(jiàn)的誤解,但這是 qdoc 語(yǔ)法,不是 doxygen.此注釋用于 Qt 項(xiàng)目中的文檔目的,以標(biāo)記要呈現(xiàn)的示例片段.請(qǐng)參閱文檔和對(duì)應(yīng)代碼,實(shí)現(xiàn)了這個(gè)功能.

Despite the common misconception, this is qdoc syntax, not doxygen. This comment is for documentation purposes in the Qt Project to mark example snippets to be rendered so. See the documentation and the corresponding code that implements this feature.

作為 Qt 的最終用戶,您不需要過(guò)多處理它,除非您開(kāi)始為 Qt 項(xiàng)目本身做出貢獻(xiàn),或者您正在嘗試將 qdoc 重用于您自己的項(xiàng)目,這在這一點(diǎn)上無(wú)疑是奇怪的.

As an end user of Qt, you do not need to deal with it too much unless you start contributing to the Qt Project itself or you are trying to reuse qdoc for your own project, which would be admittedly odd at this point.

這篇關(guān)于//![0] 在 Qt 源代碼中的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

How can I read and manipulate CSV file data in C++?(如何在 C++ 中讀取和操作 CSV 文件數(shù)據(jù)?)
In C++ why can#39;t I write a for() loop like this: for( int i = 1, double i2 = 0; (在 C++ 中,為什么我不能像這樣編寫 for() 循環(huán): for( int i = 1, double i2 = 0;)
How does OpenMP handle nested loops?(OpenMP 如何處理嵌套循環(huán)?)
Reusing thread in loop c++(在循環(huán) C++ 中重用線程)
Precise thread sleep needed. Max 1ms error(需要精確的線程睡眠.最大 1ms 誤差)
Is there ever a need for a quot;do {...} while ( )quot; loop?(是否需要“do {...} while ()?環(huán)形?)
主站蜘蛛池模板: 性生活毛片 | 99影视 | av天空| 精品国产18久久久久久二百 | 国产精品亚洲一区二区三区在线 | 99久久精品国产一区二区三区 | 麻豆亚洲| 免费在线看黄视频 | 欧美视频在线播放 | 成人三级网址 | 日韩免费av一区二区 | 欧美日韩国产一区二区三区 | 日韩欧美在线播放 | 日韩人体在线 | 在线观看国产视频 | 欧美亚洲另类丝袜综合网动图 | 精品三区| 九九热国产视频 | 免费在线观看黄网站 | 精品一区二区三区免费视频 | 在线观看视频亚洲 | 精品欧美一区二区在线观看视频 | 国产精品久久 | 国产精品免费看 | 欧美性视频在线播放 | 一区二区三区四区不卡视频 | 国家aaa的一级看片 h片在线看 | 久久亚洲国产 | 综合久久99| 特一级毛片| 99久久精品一区二区成人 | 天啪| 一区二区免费高清视频 | 婷婷国产一区二区三区 | 91日韩在线 | 国产精品视频一区二区三区不卡 | 99re视频在线观看 | 美女爽到呻吟久久久久 | 一区二区三区国产好的精 | 久久一久久 | 日本不卡高清视频 |