码迷,mamicode.com
首页 > 其他好文 > 详细

Qt &Qtcreator plugin

时间:2017-11-22 20:15:58      阅读:511      评论:0      收藏:0      [点我收藏+]

标签:导致   内核   plugin   创建   amp   UI   tps   tor   set   

事先准备:

1.qtcreator源码;

2.qtsdk内核对应版本(内核不对应的编译会失败);

 

步骤:

1.编译qtcreator源码

2.创建自定义插件;

3.编译

4.拷贝到qtcreator插件目录

5.重启qtcreator即可看到效果

若内核不一致,则qtcreator会提示用户初始化失败,原因则是内核库不一致所导致

注意:

## set the QTC_SOURCE environment variable to override the setting here
QTCREATOR_SOURCES = $$(QTC_SOURCE)
isEmpty(QTCREATOR_SOURCES):QTCREATOR_SOURCES=/Users/example/qtcreator-src

## set the QTC_BUILD environment variable to override the setting here
IDE_BUILD_TREE = $$(QTC_BUILD)
isEmpty(IDE_BUILD_TREE):IDE_BUILD_TREE=/Users/example/qtcreator-build

IDE_BUILD_TREE 中要注意qtcreator的源码路径,错误的源码路径在编译自定义插件时会报文件缺失
等错问题;
 IDE_BUILD_TREE 中特别注意要引用的是完整编译之后的qtcreator库文件,否则编译自定义插件时
会出现各种问题(core.lib缺失等问题)

参考链接

https://wiki.qt.io/Qt_Creator_Plug-in_Gallery

https://doc-snapshots.qt.io/qtcreator-extending/creating-plugins.html

https://doc-snapshots.qt.io/qtcreator-extending/first-plugin.html

Qt &Qtcreator plugin

标签:导致   内核   plugin   创建   amp   UI   tps   tor   set   

原文地址:http://www.cnblogs.com/ironics/p/7880498.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!