Qt:Документация 4.3.2/qcoreapplication-qt3

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

Qt 3 Support Members for QCoreApplication

The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.



Открытые функции

  • 8 открытых функций унаследованных от QObject

Статические открытые члены


Описание функций-членов

int QCoreApplication::enter_loop () [static]

This function enters the main event loop (recursively). Do not call it unless you really know what you are doing.

void QCoreApplication::exit_loop () [static]

This function exits from a recursive call to the main event loop. Do not call it unless you are an expert.

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.

int QCoreApplication::loopLevel () [static]

Returns the current loop level.

void QCoreApplication::processOneEvent () [static]

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.

See also processEvents(), exec(), and QTimer.

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.


Copyright © 2007 Trolltech Trademarks
Qt 4.3.2