Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

void QCoreApplication::flush (  )  [static]

Flushes the platform specific event queues.

If you are doing graphical changes inside a loop that does not return to the event loop on asynchronous window systems like X11 or double buffered window systems like Mac OS X, and you want to visualize these changes immediately (e.g. Splash Screens), call this function.

See also:
sendPostedEvents()

Definition at line 381 of file qcoreapplication.cpp.

References flush().

Referenced by QAbstractButton::animateClick(), QWindowsStyle::drawComplexControl(), flush(), QAbstractButton::keyPressEvent(), QAbstractButton::mouseMoveEvent(), QAbstractButton::mousePressEvent(), and QSplashScreen::repaint().

{
    if (self && self->d_func()->eventDispatcher)
        self->d_func()->eventDispatcher->flush();
}


Generated by  Doxygen 1.6.0   Back to index