Qt World Summit: Register Today!

Custom widget does not shows on qt designer

  • i made some code following "http://doc.qt.nokia.com/4.7/designer-customwidgetplugin.html", but found that there's shows no icon for my custom widget on qt desginer. next, i copied the compiled file(...dll, ...a) from "C:\QtSDK\Desktop\Qt\4.7.4\mingw\plugins\designer" to "c:\qtsdk\qtcreator\bin\designer", then "menu>tools>form editor>about qt designer plugins..." dialog box show that my plugin is failed to be loaded. the message is "The plugin 'C:/QtSDK/QtCreator/bin/designer/...dll' uses incompatible Qt library. Expected build key "Windows msvc release full-config", got "Windows mingw release full-config". of course i'm using mingw and there's no visual studio on my pc. what's the problem?

  • Your problem is that your QDesigner is build with Visual studio and uses a Qt version that is build with that compiler as well. However, you do not have that compiler installed, so you can not build plugins for it. Either get VS installed on your system (you can use the free Express edition without issues) or build a Mingw version of Designer yourself.

    P.S. I am moving this topic out of Quick (has nothing to do with QML/Quick) into Tools.

Log in to reply