Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
The question about the second argument of Q_DECLARE_INTERFACE ( ClassName, Identifier )
The document said Q_DECLARE_INTERFACE ( ClassName, Identifier ) 's second argument must be unique. The code
@Q_DECLARE_INTERFACE( FilterInterface, "se.thelins.CustomPlugin.FilterInterface/0.1" )@ in my book's example project works well,but if I change the code to
@Q_DECLARE_INTERFACE( FilterInterface, "numberOne" )@,my application will get no plugins.I think "numberOne" is also unique.Why it doesn't work?
lgeyer last edited by
Did you rebuild your project afterwards?
[quote author="Lukas Geyer" date="1353570049"]Did you rebuild your project afterwards?[/quote]
I find that even if I change a word of "se.thelins.CustomPlugin.FilterInterface/0.1",the plugins will be loaded unsuccessffully.