Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-19976

Auto plugin extension for multiplatform support.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • Core: Plugins
    • 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" );

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            gourmand Serge
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes