Commit 80228398 authored by Michael Winkelmann's avatar Michael Winkelmann

Instantiate QuickView later

parent 21573ebf
...@@ -31,8 +31,6 @@ int main(int ac, char *av[]) { ...@@ -31,8 +31,6 @@ int main(int ac, char *av[]) {
parser.process(app); parser.process(app);
auto *view = new QQuickView;
auto inputQml = parser.value("input"); auto inputQml = parser.value("input");
auto outputPdf = parser.value("output"); auto outputPdf = parser.value("output");
auto showPdf = parser.isSet(showOption); auto showPdf = parser.isSet(showOption);
...@@ -47,6 +45,7 @@ int main(int ac, char *av[]) { ...@@ -47,6 +45,7 @@ int main(int ac, char *av[]) {
outputPdfDir = QDir(outputPdf); outputPdfDir = QDir(outputPdf);
} }
auto *view = new QQuickView;
view->setSource(QUrl::fromLocalFile(inputQml)); view->setSource(QUrl::fromLocalFile(inputQml));
QmlPrinter printer; QmlPrinter printer;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment