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) void | flush() |
(obsolete) bool | hasPendingEvents() |
(obsolete) QString | translate(const char *context, const char *key, const char *disambiguation, QCoreApplication::Encoding encoding, int n = ...) |
Member Function Documentation
[static]
void QCoreApplication::flush()
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This function is equivalent to calling QCoreApplication::eventDispatcher()->flush()
, which also is deprecated, see QAbstractEventDispatcher::flush(). Use sendPostedEvents() and processEvents() for more fine-grained control of the event loop instead.
Historically this functions was used to flush the platform-specific native event queues.
See also sendPostedEvents(), processEvents(), and QAbstractEventDispatcher::flush().
[static]
bool QCoreApplication::hasPendingEvents()
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This function returns true
if there are pending events; otherwise returns false
. Pending events can be either from the window system or posted events using postEvent().
Note: this function is not thread-safe. It may only be called in the main thread and only if there are no other threads running in the application (including threads Qt starts for its own purposes).
See also QAbstractEventDispatcher::hasPendingEvents().
[static]
QString QCoreApplication::translate(const char *context, const char *key, const char *disambiguation, QCoreApplication::Encoding encoding, int n = ...)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
© 2020 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.