Yes,thanks!But how about the second one?
Yes,thanks!But how about the second one?
Maybe a missing include? Try:
First argument of Q_EXPORT_PLUGIN2 should be the name of the target library you are building. The macro itself needs to be available by including <QtPlugin>.
Yes,now I can build the project succefully!But I still can't see my customed widget in the designer! I run mingw32-make install ,and find that two files are created in the release folder :neonlightplugin.dll and neonlightplugin.a . What should I do to see my widget in the designer?And another question is that whether should I create the plugin in a new project and then use it in another project or both create and use the custom widget in one project?I can't find the details in the book! I have been trapped by this problem for serveral days.Thanks!!!
Last edited by furskytl; 20th September 2011 at 14:35.
I don't know! I use the Qt SDk 4.7.0 downloaded from the website.
Added after 5 minutes:
I just now build the example customwidgetplugin with qt.But I can't find it in the designer,either.Am I wrong?How to use the example?I think the example must be correct,so I must do something wrong creating and using the customed widget in the designer.Help me!
Last edited by furskytl; 20th September 2011 at 14:42.
furskytl (20th September 2011)
Yes,thank you very much!!! I go to the qt\bin directory,and run the designer there,then I can see my customed widget!!!I just open the designer item in the Qt Creator before,so I can't see the customed widget!Only now am I aware of the difference between the designer in the Creator and the Qt Designer!!! Thanks very much!!!
Bookmarks