我进QT选的Qt custom designer widget,然后建立了头文件,源文件,还有plugin文件等,最后编译也生成了.a和.dll文件,但是我将它们复制到\plugins\designer文件夹下,重新打开的QTdesigner中并没有出现我自定义的控件,到网上搜也搜不到,请高手帮我 ---------------------------不胜感激!!!!
果然如myyaoyulian所说,可以在那里看到这个插件失败:The plugin' 'uses incompatible Qt library.Expected build key"windows msve release full-config",got"windows mingw debug" 那么这个问题应该怎么解决呢??我有更好的答案
提问者采纳
2010-11-02 11:53
复制到:qtsdk-2010.05/bin/designer 进入Designer标签,tools -> Form Editor -> About QT Designer Plugin里是搜索到的控件,错误的控件有提示,比如Debug和Release选的不对。 -------------------------------------- 你是在Windows里用QT 官方说: The version of QT Creator shipped with the QT SDK Open Source version for windows is build using Visual Studio, whereas the SDK is build with and supports g++ (MinGW). This doesn’t cause too many problems, but it totally defeats building and installing QT Designer plugins into QT Creator. The error message is: Expected build key “Windows msvc release full-config” got “Windows mingw release full-config” It can be solved three different ways: 1) Build QT Creator from source with MinGW 2) Build the plugin with Visual Studio 3) Build QT Creator with build key checking turned off.
-
提问者评价
-
很感谢你的帮助
评论(3)
|
3
myyaoyulian |五级采纳率54%