以下成員源於類 QCoreApplication 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
void
|
dumpObjectInfo () |
(obsolete)
void
|
dumpObjectTree () |
(obsolete)
void
|
flush () |
(obsolete)
bool
|
hasPendingEvents () |
(obsolete)
QString
|
trUtf8 (const char * sourceText , const char * disambiguation = Q_OBJECT, int n = Q_OBJECT) |
(obsolete)
QString
|
translate (const char * context , const char * key , const char * disambiguation , QCoreApplication::Encoding encoding , int n = ...) |
[static]
void
QCoreApplication::
flush
()
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
此函數相當於調用
QCoreApplication::eventDispatcher()->flush()
,其也被棄用,見
QAbstractEventDispatcher::flush
()。使用
sendPostedEvents
() 和
processEvents
() 代替為更細粒度事件循環控製。
在過去,此函數用於刷新特定平颱本機事件隊列。
另請參閱 sendPostedEvents (), processEvents (),和 QAbstractEventDispatcher::flush ().
[static]
bool
QCoreApplication::
hasPendingEvents
()
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
此函數返迴
true
若有待決事件;否則返迴
false
。待決事件可以來自窗口係統或張貼事件使用
postEvent
().
注意: 此函數不是綫程安全的。纔可以在主綫程中調用它,僅當應用程序中沒有其它綫程在運行時 (包括 Qt 為自身目的而啓動的綫程)。
另請參閱 QAbstractEventDispatcher::hasPendingEvents ().
[static]
QString
QCoreApplication::
translate
(const
char
*
context
, const
char
*
key
, const
char
*
disambiguation
,
QCoreApplication::Encoding
encoding
,
int
n
= ...)
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。