Hi.

In a previous thread I've asked for some doubts about the Qt plugin system. My needs are to realize a Qtopia/QtExtended-style embedded system.

I have a server application (derived from QApplication with GuiServer flag), with its main entry-point function.

Now I'm trying to understand how can I run third-party applications from my server. Is the plugin system the best solution or should I use QApplication instances with GuiClient flag?

In the second case, is this base layout correct?

Qt Code:
  1. class pkServer : public QApplication
  2. {
  3. // It inherits from QApplication with GuiServer flag.
  4. }
  5.  
  6. class pkApplication : public QApplication
  7. {
  8. // It inherits from QApplication with GuiClient flag.
  9. }
  10.  
  11. int main(int argc, char **argv)
  12. {
  13. pkServer srv(argc, argv);
  14.  
  15. if (srv.startUp()) {
  16.  
  17. pkApplication client(argc, argv);
  18. client.startUp() // The client app shows its widgets here.
  19.  
  20. // ...other clients here...
  21.  
  22. return pkServer::exec();
  23. }
  24.  
  25. return pkServer::StartupFailure;
  26. }
To copy to clipboard, switch view to plain text mode 

Thanks for your answers!