QCoreApplication 過時成員

以下成員源於類 QCoreApplication 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

靜態公共成員

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

成員函數文檔編製

[static] int QCoreApplication:: argc ()

使用 arguments ().size() instead.

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

使用 arguments () 代替。

[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.

另請參閱 processEvents (), exec (),和 QTimer .