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
2792ea8f
Commit
2792ea8f
authored
Nov 18, 2014
by
tanelipe
Browse files
Update README.md
Updated README to include examples
parent
afe1e123
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
2792ea8f
...
...
@@ -4,3 +4,13 @@ QmlPrinter
Simple Qt component which allows user to print out a QML view from C++.
Based on the work of Cyrille Berger (https://github.com/cyrilleberger/PrintML)
Examples
==========
```
// Get the root view object
QQuickItem *root = ...
// Print the view to Report.pdf located in Public Documents and then open it with a default PDF viewer
QmlPrinter printer;
printer.printPDF("C:\\Users\\Public\\Documents\\Report.pdf", root, true);
```
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