Compatibility Members for QCoreApplication

The following members of class QCoreApplicationare part of the Qt compatibility layer. We advise against using them in new code.

Public Functions

void lock()
bool locked()
bool tryLock()
void unlock(bool wakeUpGui = true)
  • 8 public functions inherited from QObject

Member Function Documentation

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.

See also QWidget::paintEvent().

bool QCoreApplication::locked()

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

See lock() for details.

bool QCoreApplication::tryLock()

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

See lock() for details.

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.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.