Explicitly close the Qt Quick window.
Change-Id: I9f3ed6155577b6d066ab00c407ce99f31b1263aa
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
groupBoxLayout->addWidget(splineEditor->pointListWidget());
m_splineEditor = splineEditor;
connect(ui_properties.plainTextEdit, SIGNAL(textChanged()), this, SLOT(textEditTextChanged()));
+ connect(this, SIGNAL(close()), this, SLOT(doClose()));
initQml();
}
quickView.setSource(QUrl("qrc:/preview.qml"));
quickView.show();
}
+
+void MainWindow::closeEvent(QCloseEvent *)
+{
+ quickView.close();
+}
protected:
virtual void moveEvent(QMoveEvent *event);
virtual void resizeEvent(QResizeEvent *event);
+ virtual void closeEvent(QCloseEvent *event);
void initQml();
private: