以下成員源於類 QCoreApplication 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
enum
|
編碼 { UnicodeUTF8 } |
(obsolete)
void
|
flush () |
(obsolete)
bool
|
hasPendingEvents () |
(obsolete)
QString
|
translate (const char * context , const char * key , const char * disambiguation , QCoreApplication::Encoding encoding , int n = -1) |
This enum is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This enum type used to define the 8-bit encoding of character string arguments to translate (). This enum is now obsolete and UTF-8 will be used in all cases.
| 常量 | 值 | 描述 |
|---|---|---|
QCoreApplication::UnicodeUTF8
|
0
|
UTF-8. |
另請參閱 QObject::tr () 和 QString::fromUtf8 ().
[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
= -1)
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。