QEventLoop
In Qt 3, QEventLoop
combined the Qt event loop and the event dispatching. In Qt 4, these tasks are now assigned to two distinct classes: QEventLoop and QAbstractEventDispatcher.
ps:在Qt 3中,QEventLoop组合了Qt事件循环和事件分派。 在Qt 4中,这些任务现在分配给两个不同的类:QEventLoop和QAbstractEventDispatcher。
If you subclassed QEventLoop to integrate with another library's event loop, you must subclassQAbstractEventDispatcher instead. See the class documentation for details.
ps:如果您将QEventLoop子类化以与另一个库的事件循环集成,则必须改为使用QAbstractEventDispatcher子类。 有关详细信息,请参阅类文档。
Developers using QEventLoop::loopLevel()
in Qt 3 should use QCoreApplication::loopLevel() instead. Note that this function is marked as obsolete, but it is expected to be available for the lifetime of Qt 4.
ps:在Qt3中使用QEventLoop::loopLevel()的开发人员应该使用QCoreApplication::loopLevel()替代。 请注意,此函数被标记为已过时,但它预计可用于Qt4的生命周期。