Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
-
None
Description
Now plugin extension must be added to filename:
PluginLoader.setFileName( "myPlugin.dll" );
But for multiplatform application I'd rather omit extension here:
PluginLoader.setFileName( "myPlugin" );
to let system add proper .dll, .so or .dylib by itself. Now I need do some actions if I create multiplatformed app.
I suggest create overloaded setFileName() in future versions of Qt. It will have one additional parameter:
PluginLoader::setFileName( const char* filename, bool autoextension );
if autoextension == true then assumed filename doesn't have extension and it is added by this function depending from system
then I'll just call
PluginLoader.setFileName( "myPlugin", true );
and will be happy in all host OSes...
call to
PluginLoader.setFileName( "myPlugin.dll", false );
will be the same as
PluginLoader.setFileName( "myPlugin.dll" );