翻譯|使用教程|編輯:鮑佳佳|2021-08-19 10:26:24.240|閱讀 190 次
概述:主題描述了如何為常規(guī) Qt 應用程序添加 Qtitan 組件。本主題中描述的步驟與所有 Qtitan 組件相關(guān) - QtitanRibbon、QtitanChart、QtitanNavigation、QtitanDocking、QtitanDataGrid。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
主題描述了如何為常規(guī) Qt 應用程序添加 Qtitan 組件。本主題中描述的步驟與所有 Qtitan 組件相關(guān) - QtitanRibbon、QtitanChart、QtitanNavigation、QtitanDocking、QtitanDataGrid。
要使用 Qtitan 組件,您需要:
將 Qtitan 組件頭文件和庫添加到您的應用程序。為此,在您的應用程序項目文件 (*.pro) 中包含特殊組件項目文件 (*.pri):
include(<QTITAN_INSTALL_PATH>/src/shared/qtitan.pri) // To include all the qtitan components installed at <QTITAN_INSTALL_PATH>或按如下方式添加特定組件:
include(<QTITAN_INSTALL_PATH>/src/shared/qtitanribbon.pri) // QtitanRibbon include(<QTITAN_INSTALL_PATH>/src/shared/qtitandatagrid.pri) // QtitanDataGrid include(<QTITAN_INSTALL_PATH>/src/shared/qtitannavigation.pri) // QtitanNavigationDesignUI include(<QTITAN_INSTALL_PATH>/src/shared/qtitanchart.pri) // QtitanChart include(<QTITAN_INSTALL_PATH>/src/shared/qtitandocking.pri) // QtitanDocking
如果 Qtitan 組件是靜態(tài)構(gòu)建的,則在 include 行之前添加 CONFIG+=qtitan_staticlib:
CONFIG+=qtitan_staticlib include(<QTITAN_INSTALL_PATH>/src/shared/qtitan.pri)
從應用程序的根目錄運行 qmake.exe。如果需要生成 Visual Studio 項目文件,請在 qmake.exe 中添加“-tp vc”鍵
qmake.exe -tp vc -r // Will generate Visual Studio project and/or solution file.
主題描述了如何從命令行構(gòu)建 Qtitan 組件源到您的環(huán)境。
Open the bat shell. "Windows logo key" + R, cmd.exe Set current directory to the <QTITAN_INSTALL_PATH>. C:/>dir <QTITAN_INSTALL_PATH> vcvars32.bat qmake.exe -r -platform win32-msvc nmake all
Open the bat shell. "Windows logo key" + R, cmd.exe Set current directory to the <QTITAN_INSTALL_PATH>. C:/>dir <QTITAN_INSTALL_PATH> vcvars32.bat qmake.exe -staticlib -r -platform win32-msvc nmake all
Open the bat shell. "Windows logo key" + R, cmd.exe Set current directory to the <QTITAN_INSTALL_PATH>. C:/>dir <QTITAN_INSTALL_PATH> vcvars32.bat qmake.exe -r -platform win32-g++ mingw32-make all
Open the bat shell. "Windows logo key" + R, cmd.exe Set current directory to the <QTITAN_INSTALL_PATH>. C:/>dir <QTITAN_INSTALL_PATH> vcvars32.bat qmake.exe -staticlib -r -platform win32-g++ mingw32-make all
要使用靜態(tài)鏈接,請將 -staticlib 或 CONFIG+=qtitan_staticlib 鍵添加到 qmake.exe。
qmake.exe -staticlib -r -platform <platform> or qmake.exe CONFIG+=qtitan_staticlib -r -platform <platform
Qtitan Components 使用 Qt 私有頭文件來實現(xiàn)一組不錯的功能。您可以忽略私有標頭以將開關(guān)鍵添加到命令行。在這種情況下,某些功能將丟失。僅當您了解自己在做什么時才使用此標志。
如果您希望阻止使用私有標頭,則將 CONFIG+=qtitan_no_private 密鑰添加到 qmake.exe。
qmake.exe CONFIG+=qtitan_no_private -r -platform <platform>
================================================== ==
想要了解或購買Qt正版授權(quán)的朋友,歡迎
Qt技術(shù)交流交流群開通,QQ搜索群號“765444821”或者掃描二維碼加入
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自: