Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Hands-On Embedded Programming with Qt

You're reading from  Hands-On Embedded Programming with Qt

Product type Book
Published in Jul 2019
Publisher Packt
ISBN-13 9781789952063
Pages 416 pages
Edition 1st Edition
Languages
Author (1):
John Werner John Werner
Profile icon John Werner

Table of Contents (22) Chapters

Preface 1. Section 1: Getting Started with Embedded Qt
2. Setting Up the Environment 3. Writing Your First Qt Application 4. Running Your First Application on the Target 5. Section 2: Working with Embedded Qt
6. Important Qt Concepts 7. Managing the Overall Workflow 8. Exploring GUI Technologies 9. Adding More Features 10. Section 3: Deep Dive into Embedded Qt
11. Qt in the Embedded World 12. Exploring the IoT with Qt 13. Using More Qt-Related Technologies 14. Section 4: Advanced Techniques and Best Practices
15. Debugging, Logging, and Monitoring Qt Applications 16. Responsive Application Programming - Threads 17. Qt Best Practices 18. Assessments 19. Other Books You May Enjoy Appendix A: BigProject Requirements
1. Appendix B: Bonus Code - Simplifying Q_PROPERTY

Printing (PDF)

Would you believe that we have new requirements? They are as follows:

  • Req 25: BigProject shall be able to generate a report of temperature readings for the last 24 hours.
  • Req 26: The report shall be output in PDF format.

Qt to the rescue!

Qt provides printing capabilities, including the ability to output to a PDF file! We will make use of it here.

The basics

While some Qt GUI objects have special print methods that can be invoked to print on QPrinter, many don't. This is because of how Qt chose to support printing.

At the base level, Qt paints GUI objects onto paint devices. When a widget is drawn on the screen, Qt is painting it onto the screen. Printing works essentially the same way. Objects are painted...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}