AnyCAD C++ SDK專為Qt框架增加了AnyPlatformQt.lib模塊,在Qt中使用AnyCAD三維建模控件變得十分簡單。
下載
Qt高速下載:http://pan.baidu.com/s/1bng1kwJ
AnyCAD C++ SDK高速下載:http://pan.baidu.com/s/1qWFS1tE
QtCreator配置
假如AnyCAD C++ SDK目錄為 ${AnySDK}
設置include路徑:
INCLUDEPATH += ${AnySDK}/inc
設置lib和lib路徑:
win32:CONFIG(release, debug|release): LIBS += -L${AnySDK}/lib/release/ -lAnyPlatformAPI
else:win32:CONFIG(debug, debug|release): LIBS += -L${AnySDK}/lib/debug/ -lAnyPlatformAPI
win32:CONFIG(release, debug|release): LIBS += -L${AnySDK}/lib/release/ -lAnyPlatformQt
else:win32:CONFIG(debug, debug|release): LIBS += -L${AnySDK}/lib/debug/ -lAnyPlatformQt
使用AuWindow3d三維控件
包含頭文件
#include “AnyPlatformAPI.h”
#include “AnyPlatformQtInclude.h”
#include “Widgets/AuWindow3d.h”
AnyCAD::QtUi::AuWindow3d是從QWidget繼承而來,可以像使用其他Widget一樣使用它。
具體參考附帶示例。
其他AnyCAD::API中的建模、顯示等與MFC一樣使用。