开发者

Custom qt widget in QtDesigner

开发者 https://www.devze.com 2023-03-09 17:06 出处:网络
I learned how to create a custom Qt Widget. I have two manuals for that. One is from the official documentation and the second one is from C++ GUI Programming with Qt开发者_StackOverflow中文版 4. I tr

I learned how to create a custom Qt Widget. I have two manuals for that. One is from the official documentation and the second one is from C++ GUI Programming with Qt开发者_StackOverflow中文版 4. I tried those examples for creating custom Qt Widget and compiled them. After that, I put the output files ( .dll, .a file) into QTSDKDirectory\Desktop\Qt\4.7.3\mingw\plugins\designer, but nothing was changed in QtDesigner.


In Qt Designer you have an About Plug-ins box. That's the first thing you want to check out. It will tell you whether your plug-in was loaded.

If your plug-in crashes, then it will crash Qt Designer, so that's not what was happening here.

One of the main reason for not loading a plug-in is incompatibility. In most cases, you compiled the plug-in in Debug and Qt Designer is a Release version.

if the plug-in loaded but you still don't see anything, the Group definition may be wrong or the create function may be failing somehow.

0

精彩评论

暂无评论...
验证码 换一张
取 消