Create GUI Applications with Python & Qt6 (PyQt6 Edition): The hands-on guide to making apps with Python
- Length: 997 pages
- Edition: 2
- Language: English
- Publication Date: 2022-05-22
- ISBN-10: B0B21WDNR8
- Sales Rank: #470743 (See Top 100 Books)
Building desktop applications doesn’t have to be difficult. Using Python & Qt6 you can create fully functional desktop apps in minutes. Starting from the very basics, this modern PyQt6 book takes you on a tour of the key features of PyQt6 you can use to build real-life applications.
This is the 2nd Edition of Create GUI Applications with Python & Qt6, updated for 2022 & PyQt6. Learn the fundamental building blocks of PyQt applications — Widgets, Layouts & Signals and learn how PyQt6 uses the event loop to handle and respond to user input. Design beautiful UIs with Qt Designer and customize the look and feel of your applications with Qt Style Sheets and custom widgets.Use Qt’s MVC-like ModelViews framework to connect data sources to your widgets, including SQL databases, numpy and pandas data tables, to build-data driven application. Visualize data using matplotlib & PyQtGraph and connect with external data sources to build live dashboards. Learn how to use threads and processes to manage long-running tasks and communicate with external services. Parse data and visualize the output in logs and progress bars.The book includes usability and architectural tips to help you build maintainable and usable PyQt6 applications from the start. Finally, once your application is ready to be released, discover how to package it up into professional-quality installers, ready to ship.
Contents
- PyQt6 Widgets
- Signals, slots & events
- GUI Layouts
- Toolbars & Menus
- PyQt6 Dialogs, including file dialogs, warning and custom dialogs
- Windows
- Qt Designer
- PyQt6 Themes, Styles, Palettes & Icons
- Model View Architecture
- Creating custom widgets, using custom widgets in Designer
- PyQt6 Table views with numpy & pandas
- Database, SQL models
- Extending PyQt6 Signals
- Working with relative paths, resources
- System tray & Menus
- Threading, thread pools & processes, QThread
- Plotting with PyQtGraph & matplotlib
- Packaging & distribution of PyQt6 apps on Windows, macOS & Linux
- Example PyQt6 apps
The book includes
- 780 pages of hands-on PyQt6 exercises
- 300+ code examples to experiment with
- Support forum for all readers
- Includes 4 example PyQt6 apps
- Compatible with Python 3.4+
- Code free to reuse in your own projects
Martin Fitzpatrick has been teaching and using PyQt for 8 years, helping thousands of developers bring their applications to life. With this book you get the benefit of that experience. & give your project the best chance of success!
Introduction 1. A very brief history of the GUI 2. A bit about Qt Basic PyQt6 Features 3. My first Application 4. Signals & Slots 5. Widgets 6. Layouts 7. Actions, Toolbars & Menus 8. Dialogs 9. Windows 10. Events Qt Designer 11. Installing Qt Designer 12. Getting started with Qt Designer Theming 13. Styles 14. Palettes 15. Icons 16. Qt Style Sheets (QSS) Model View Architecture 17. The Model View Architecture — Model View Controller 18. A simple Model View — a Todo List 19. Tabular data in ModelViews, with numpy & pandas 20. Querying SQL databases with Qt models Custom Widgets 21. Bitmap Graphics in Qt 22. Creating Custom Widgets 23. Using Custom Widgets in Qt Designer Concurrent Execution 24. Introduction to Threads & Processes 25. Using the thread pool 26. QRunnable examples 27. Long-running threads 28. Running external commands & processes Plotting 29. Plotting with PyQtGraph 30. Plotting with Matplotlib Further PyQt6 Features 31. Timers 32. Extending Signals 33. Working with Relative Paths 34. System tray & macOS menus 35. Enums & the Qt Namespace 36. Working with command-line arguments Packaging & Distribution 37. Packaging with PyInstaller 38. Creating a Windows installer with InstallForge 39. Creating a macOS Disk Image Installer 40. Creating a Linux Package with fpm Example applications 41. Mozzarella Ashbadger 42. Moonsweeper Appendix A: Installing PyQt6 43. Installation on Windows 44. Installation on macOS 45. Installation on Linux Appendix B: Translating C++ Examples to Python 46. The example code 47. Imports 48. int main(int argc, char *argv[]) 49. C++ types 50. Signals 51. Syntax 52. Applying the process to your own code Appendix C: PyQt6 and PySide6 — What’s the difference? 53. Background 54. Licensing 55. Namespaces & Enums 56. UI files 57. Converting UI files to Python 58. exec() or exec_() 59. Slots and Signals 60. QMouseEvent 61. Features in PySide6 but not in PyQt6 62. Supporting both in libraries 63. That’s really it Appendix D: What next? 64. Get access to updates 65. Documentation 66. Copyright 67. Thank you
Donate to keep this site alive
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.