Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

Obsolete Members for QCoreApplication

The following class members are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

QCoreApplication class reference

Public Functions

Static Public Members


Member Function Documentation

QTextCodec * QCoreApplication::defaultCodec () const

Returns QTextCodec::codecForTr().

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.

bool QCoreApplication::hasPendingEvents ()   [static]

This function returns true if there are pending events; otherwise returns false. Pending events can be either from the window system or posted events using QApplication::postEvent().

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.

void QCoreApplication::setDefaultCodec ( QTextCodec * codec )

Sets the codec to be used for tr() calls to codec. Use QTextCodec::setCodecForTr() instead.


Copyright © 2004 Trolltech Trademarks
Qt 4.0.0-b1