Qt5 - QtCreator doesn't load custom widget
-
Are you using linux or windows? Are us using default Qt Creator which came from MinGW Windows sdk?
These conditions have to met when using designer plugins:
- Qt sdk need to be build with your compiler (MinGW)
- Qt Creator need to be build with your compiler (MinGW)
- QScintilla Designer and Lib plugins needed to compile with your compiler (MinGW)
Other way the STDCALL will not work because name mangels different in GNU and MSVC.
You need to copy these to make designer plugin work:
- QScintilla2.dll to tools/QtCreator-MinGW/bin
- qscintillaplugin.dll to sdk/plugins/designer
-
I'm having the same problem with Qscintilla 2.8.3,
I'm using Qt5.2.0 with MingGw4.8, I followed the same instructions while making the files with MinGw32-make & MinGw32 Make install, I copied the files as follow:
qsintillaplugin.dll to : 1-: C:\Qt\Qt5.2.0\5.2.0\mingw48_32\plugins\designer
2-: C:\Qt\Qt5.2.0\Tools\QtCreator\bin\plugins\designer
qsintilla2.dll to: C:\Qt\Qt5.2.0\Tools\QtCreator\binthe tools-Form Editor-> About plugins displays:
Cannot load library
C:\Qt\Qt5.2.0\Tools\QtCreator\bin\plugins\designer\qsintillaplugin.dll: The specified module could not be foundin a console application it works fine I can use the editor but I need it within the designer to make GUI application
any help?
-
Hello,
I'm having the same problem and have not been able to extract a solution out of previous posts. I have followed the procedure described to have an integrable widget in qt designer, had it compile fine and detected by qt designer.
I first had an error due to the fact that I had built my library in debug rather than release but now I have built the library in release mode.
Going in Tools/Form Editor/ About... I see my plugin with error message :
Could not load ... library, the specified module could not be found.Any help would be appreciated !
-
Hello,
I'm having the same problem and have not been able to extract a solution out of previous posts. I have followed the procedure described to have an integrable widget in qt designer, had it compile fine and detected by qt designer.
I first had an error due to the fact that I had built my library in debug rather than release but now I have built the library in release mode.
Going in Tools/Form Editor/ About... I see my plugin with error message :
Could not load ... library, the specified module could not be found.Any help would be appreciated !
-
Hi and welcome to devnet,
Does your plugin have any dependency ? Did you compile it using the same compiler as your Qt Creator version ?
-
Hi and welcome to devnet,
Does your plugin have any dependency ? Did you compile it using the same compiler as your Qt Creator version ?
-
Hi and thank you for your greeting,
I don't think my plugin has any dependency, actually I took the exemple from qt documentation : the worldclock example.
I tried with two Qt installs, the first one was "qt-opensource-windows-x86-1.6.0-5-online" - I don't know how it was compiled - and the second "one qt-opensource-windows-x86-mingw491_opengl-5.4.0" which I'm guessing is compiled using mingw. My plugin is compiled with mingw. I get the same message with both. -
Hi and thank you for your greeting,
I don't think my plugin has any dependency, actually I took the exemple from qt documentation : the worldclock example.
I tried with two Qt installs, the first one was "qt-opensource-windows-x86-1.6.0-5-online" - I don't know how it was compiled - and the second "one qt-opensource-windows-x86-mingw491_opengl-5.4.0" which I'm guessing is compiled using mingw. My plugin is compiled with mingw. I get the same message with both. -
Unless it changed recently, Qt Creator is built with VS2010 so you have two options:
Change your compiler
Build Qt Creator yourself
IIRC, you should also use the same Qt version that was used for Qt Creator (shown in the about box)
Since you are creating a custom plugin, you should consider option 2 so you'll have both matching Qt and compiler
-
Unless it changed recently, Qt Creator is built with VS2010 so you have two options:
Change your compiler
Build Qt Creator yourself
IIRC, you should also use the same Qt version that was used for Qt Creator (shown in the about box)
Since you are creating a custom plugin, you should consider option 2 so you'll have both matching Qt and compiler