Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Winkelmann
QmlSlidePrinter
Commits
80228398
Commit
80228398
authored
Nov 02, 2018
by
Michael Winkelmann
Browse files
Instantiate QuickView later
parent
21573ebf
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.cpp
View file @
80228398
...
...
@@ -31,8 +31,6 @@ int main(int ac, char *av[]) {
parser
.
process
(
app
);
auto
*
view
=
new
QQuickView
;
auto
inputQml
=
parser
.
value
(
"input"
);
auto
outputPdf
=
parser
.
value
(
"output"
);
auto
showPdf
=
parser
.
isSet
(
showOption
);
...
...
@@ -47,6 +45,7 @@ int main(int ac, char *av[]) {
outputPdfDir
=
QDir
(
outputPdf
);
}
auto
*
view
=
new
QQuickView
;
view
->
setSource
(
QUrl
::
fromLocalFile
(
inputQml
));
QmlPrinter
printer
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment