开发者

VS2010 Qt4 Designer Plugin linking with VS2010 Application

开发者 https://www.devze.com 2023-03-29 20:59 出处:网络
I\'m currently building my first QT4 interface using the add-in for VS2010, which all works fine. (Qt Application Project);

I'm currently building my first QT4 interface using the add-in for VS2010, which all works fine. (Qt Application Project);

If I then create another project (QT4 Designer Plugin), create my custom widget and compile I can then move these files into "$(QTDIR)\plugins\designer".

I can then use the designer to add this widget into my (Qt Application Project);

What I would like to know is is it possible debug a plugin? (Qt Designer will only load a rele开发者_高级运维ase build on the QT4 Designer Plugin). Can I change the directory QtDesigner looks in based on Release and Debug Build?

Thanks!


You don't have to worry about the designer. Create a debug .lib file for your plugin and use it while compiling your code. Just include the debug .lib file in your VIsual Studio (Linker->Input->Additional Dependencies). Ex: $(BUILDDIR)\Debug\myplugind.lib And that should work. This works for me. Let me know if you see any issues.

0

精彩评论

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