Obsolete Members for QCoreApplication

The following members of class QCoreApplication are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Static Public Members

(obsolete) int argc()
(obsolete) char ** argv()
(obsolete) int enter_loop()
(obsolete) void exit_loop()
(obsolete) int loopLevel()
(obsolete) void processOneEvent()

Member Function Documentation

[static] int QCoreApplication::argc()

Use arguments().size() instead.

[static] char ** QCoreApplication::argv()

Use arguments() instead.

[static] int QCoreApplication::enter_loop()

This function enters the main event loop (recursively). Do not call it unless you really know what you are doing.

[static] void QCoreApplication::exit_loop()

This function exits from a recursive call to the main event loop. Do not call it unless you are an expert.

[static] int QCoreApplication::loopLevel()

Returns the current loop level.

[static] void QCoreApplication::processOneEvent()

Waits for an event to occur, processes it, then returns.

This function is useful for adapting Qt to situations where the event processing must be grafted onto existing program loops.

Using this function in new applications may be an indication of design problems.

See also processEvents(), exec(), and QTimer.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.