I find a way to open file, by drag file to application icon (or taskbar) on Mac is QFileOpenEvent ,
is a long way see http://wiki.qtcentre.org/index.php?t...Mac_OSX_Finder
but its can run.. file extension must having on xml plist,
on window arguments list from int main(int argc, char *argv[]) .... can run.
An now how i can drag file to apps icon to open on Gnome Linux?
Is here other file event? Arguments list not respond.

On Gnome i find only ChSciTE that i can drag file to icon to open.! is here other QT apps wo run by drag file to icon on Gnome?


Qt Code:
  1. class AwesomeApplication : public QApplication
  2. {
  3. Q_OBJECT
  4. public:
  5. ...
  6. protected:
  7. bool event(QEvent *);
  8. ...
  9. private:
  10. void loadFile(const QString &fileName);
  11. };
  12.  
  13. bool AwesomeApplication::event(QEvent *event)
  14. {
  15. switch (event->type()) {
  16. case QEvent::FileOpen:
  17. loadFile(static_cast<QFileOpenEvent *>(
  18. event)->file());
  19. return true;
  20. default:
  21. return QApplication::event(event);
  22. }
  23. }
To copy to clipboard, switch view to plain text mode 

The problem file:
https://wysiwyg-edit.svn.sourceforge...s/src/main.cpp