I don't understand how to create an empy application that only loads a plugin that is a GUI itself.
I cannot make it work ...

Actually I have a main.cpp that creates and executes a QApplication
Qt Code:
  1. int main(int argc, char *argv[])
  2. {
  3. MainApp app(argc, argv);
  4. return app.exec();
  5. }
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. class MainApp : public QApplication
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. MainApp(int &argc, char **argv);
  7. ~MainApp();
  8.  
  9. private:
  10. void loadPlugins();
  11.  
  12. QDir pluginsDir;
  13. QStringList pluginFileNames;
  14. }
To copy to clipboard, switch view to plain text mode 

when MainApp is created it calls loadPlugins:
Qt Code:
  1. MainApp::MainApp(int &argc, char **argv) :
  2. QApplication(argc, argv)
  3. {
  4. loadPlugins();
  5. }
To copy to clipboard, switch view to plain text mode 

QPluginLoader loader(..) fails as I get:
ERROR !!! loader.isLoaded(): <0> - loader.errorString(): <Unknown error>
Does anybody know something about it ?
Thanks.