Is it possible to call QApplication::processEvents() inside the event handler, where there is a long process. My program terminates with Segfault. My code is something like this:
void MyApplication::customEvent(QEvent* event)
{
if(event->type() == UserEventCustom)
{
for(int i = 0; i < 99999; ++i)
{
QApplication::processEvents();
doSomething();
}
event->accept();
}
}