Hi,

> Q_GUI_MAIN(appInit, appExit);

Magic macros for main should be avoided, IMO.

A typical application main() can look like

 main()
 {
    QApplication a();

    Initialization code for other libraries

    parseArguments(), return if failed

    show some FileDialog prompting for argument if sth was missing

    try {
      app.exec()
    } catch (exception) {
    }
    De-Initialize something
 }

There is no way to shoehorn this into some macro; this can already be observed when trying to adding some initialization to a test.

Regards,
Friedemann

--

Friedemann Kleint
The Qt Company GmbH

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to