[SOLVED] [Qt Plugin] A simple question on plugins
-
wrote on 5 Jul 2011, 13:47 last edited by
Hello Qt Devs!
On "this":http://developer.qt.nokia.com/forums/viewthread/7186/P15 thread, André advised me to use plugins to write my Qt app (background info "here":http://developer.qt.nokia.com/forums/viewthread/7221/). I read the "wiki":http://developer.qt.nokia.com/wiki/BasicsOfPlugins and went through the "Plug & Paint":http://doc.qt.nokia.com/latest/tools-plugandpaint.html example.
Now, is it possible for a plugin to have methods that are not defined in the interface? Moreover, for these plugins to return widgets, I must have form files (.UI files) that the plugin processes, right?
If you need any clarification on any point, please ask me.
Thanks for your time!
-
wrote on 5 Jul 2011, 13:53 last edited by
[quote author="Joey Dumont" date="1309873675"]
Now, is it possible for a plugin to have methods that are not defined in the interface?
[/quote]Yes, but you won't be able to access them from your main app.
[quote author="Joey Dumont" date="1309873675"]
Moreover, for these plugins to return widgets, I must have form files (.UI files) that the plugin processes, right?
[/quote]If you compile the plugins and the plugins don't dynamically load the Ui (e.g. via UiLoader), then you don't need the .ui files. (You need them only to compile your plugins, but not afterward)
-
wrote on 5 Jul 2011, 14:00 last edited by
Thanks, @loladiro. That's all I wanted to know.
1/3