Compatibility Members for QCoreApplication

以下成員源於類 QCoreApplication are part of the Qt compatibility layer. We advise against using them in new code.

公共函數

void lock ()
bool locked ()
bool tryLock ()
void unlock (bool wakeUpGui = true)

成員函數文檔編製

void QCoreApplication:: lock ()

In Qt 3, this function locked the Qt library mutex, allowing non-GUI threads to perform basic printing operations using QPainter .

In Qt 4, this is no longer supported, since painting is only supported from within a paint event handler. This function does nothing.

另請參閱 QWidget::paintEvent ().

bool QCoreApplication:: locked ()

This function does nothing. It is there to keep old code working. It always returns false.

lock () 瞭解細節。

bool QCoreApplication:: tryLock ()

This function does nothing. It is there to keep old code working. It always returns false.

lock () 瞭解細節。

void QCoreApplication:: unlock ( bool wakeUpGui = true)

In Qt 3, this function unlocked the Qt library mutex. The mutex allowed non-GUI threads to perform basic printing operations using QPainter .

In Qt 4, this is no longer supported, since painting is only supported from within a paint event handler. This function does nothing.