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

Saving settings

Up until now, there have been many hardcoded configuration and user settings. Some of them can be set through the GUI, but others have only been changeable by editing the code and recompiling. Even the ones that can be set through the GUI always start with a hardcoded value and not with the last setting that was made. It's time we changed things so that settings are preserved between runs and so that we can make changes without rebuilding the code.

To do this, we will use the QSettings class. QSettings provides cross-platform support for saving and restoring program settings.

Searching for settings

Before we can use QSettings, it would be useful to figure out what settings we need. The first ones that...

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}