Hello!
My problem is the following. I'd like to load UI files dynamically using QUiLoader::load(). As far as I have custom widgets I have to let me my application know about them. But I'd like to make it "single file application". As far as I understand I have to register my custom widget as a plugin using subclassing from QDesignerFormEditorInterface and registering that subclass with Q_EXPORT_PLUGIN2 macro and using Q_IMPORT_PLUGIN in the beginning of my application.
It must be I'm wrong because I get
..\..\lua-application\src\main.cpp(12) : warning C4101: 'qt_plugin_instance_widgets' : unreferenced local variable
at the line there Q_IMPORT_PLUGIN is mentioned and
error LNK2019: unresolved external symbol "class QObject * __cdecl qt_plugin_instance_widgets(void)" (?qt........
after linking attempt.
It must be it should be done in the way other then using Q_EXPORT_PLUGIN2/Q_IMPORT_PLUGIN couple. Could one, please, assist me with this issue? Sould it be made without separate shared plugin library?
Thank you in advance!
Bookmarks