//---------------------------------------------------------------------------- ctkHostAppExampleWidget::ctkHostAppExampleWidget(QWidget *parent) : QWidget(parent), ui(new Ui::ctkHostAppExampleWidget) { qDebug() << "setup ui"; ui->setupUi(this); ui->crashLabel->setVisible(false); ui->messageOutput->setVisible(true); this->Host = new ctkExampleDicomHost(ui->placeholderFrame); connect(&this->Host->getAppProcess(),SIGNAL(error(QProcess::ProcessError)),SLOT(appProcessError(QProcess::ProcessError))); connect(&this->Host->getAppProcess(),SIGNAL(stateChanged(QProcess::ProcessState)),SLOT(appProcessStateChanged(QProcess::ProcessState))); connect(ui->placeholderFrame,SIGNAL(resized()),SLOT(placeholderResized())); connect(this->Host,SIGNAL(stateChangedReceived(ctkDicomAppHosting::State)),SLOT(appStateChanged(ctkDicomAppHosting::State))); }
void ViewLoading::setupView() { // connect to the model connect( qApp, SIGNAL(appStateChanged(FCApp::StateInfo, FCApp::StateInfo)), SLOT(onAppStateChanged(FCApp::StateInfo, FCApp::StateInfo)) ); }