if (!CORBA::is_nil(theView3D)) {
VISU::View3D_i* pView = dynamic_cast<VISU::View3D_i*>(GetServant(theView3D).in());
- //QAD_StudyFrame* aStudyFrame = pView->GetStudyFrame();
- //myView = VISU::GetViewFrame(aStudyFrame);
- SUIT_ViewWindow* aVW = pView->myViewWindow;
+ SUIT_ViewWindow* aVW = pView->GetViewWindow();
myView = VISU::GetViewWindow(aVW);
}
}
myView->Repaint(false);
- int delay = 100;
if (isDumping) {
+ // We must unlock mutex for some time before grabbing to allow view updating
+ qApp->unlock();
+ msleep(100);
+ qApp->lock();
+
QPixmap px = QPixmap::grabWindow(myView->winId());
QString aFile(myDumpPath);
QString aName = QString("%1").arg(myFieldsLst[0].myTiming[myFrame]);
myFieldsLst[0].myTiming[myFrame]) / aOneVal;
}
}
- delay = (int)(1000. * k / mySpeed);
+ int delay = (int)(1000. * k / mySpeed);
+ qApp->unlock();
+ msleep(delay);
+ qApp->lock();
}
- qApp->unlock();
- msleep(delay);
- qApp->lock();
if (!myIsActive) break;