Qt5 Python GUI Programming Cookbook: Building responsive and powerful cross-platform applications with PyQt

B.M. Harwani

買這商品的人也買了...

商品描述

Over 60 recipes to help you design interactive, smart, and cross-platform GUI applications

Key Features

  • Get succinct QT solutions to pressing GUI programming problems in Python
  • Learn how to effectively implement reactive programming
  • Build customized applications that are robust and reliable

Book Description

PyQt is one of the best cross-platform interface toolkits currently available; it's stable, mature, and completely native. If you want control over all aspects of UI elements, PyQt is what you need. This book will guide you through every concept necessary to create fully functional GUI applications using PyQt, with only a few lines of code.

As you expand your GUI using more widgets, you will cover networks, databases, and graphical libraries that greatly enhance its functionality. Next, the book guides you in using Qt Designer to design user interfaces and implementing and testing dialogs, events, the clipboard, and drag and drop functionality to customize your GUI. You will learn a variety of topics, such as look and feel customization, GUI animation, graphics rendering, implementing Google Maps, and more. Lastly, the book takes you through how Qt5 can help you to create cross-platform apps that are compatible with Android and iOS. You will be able to develop functional and appealing software using PyQt through interesting and fun recipes that will expand your knowledge of GUIs

What you will learn

  • Use basic Qt components, such as a radio button, combo box, and sliders
  • Use QSpinBox and sliders to handle different signals generated on mouse clicks
  • Work with different Qt layouts to meet user interface requirements
  • Create custom widgets and set up customizations in your GUI
  • Perform asynchronous I/O operations and thread handling in the Python GUI
  • Employ network concepts, internet browsing, and Google Maps in UI
  • Use graphics rendering and implement animation in your GUI
  • Make your GUI application compatible with Android and iOS devices

Who this book is for

If you’re an intermediate Python programmer wishing to enhance your coding skills by writing powerful GUIs in Python using PyQT, this is the book for you.

Table of Contents

  1. Creating User Interface using QT components
  2. Event Handling - Signals and Slots
  3. Working with Date and Time
  4. Understanding OOPs concept
  5. Understanding Dialogs
  6. Understanding Layouts
  7. Using Network and Managing Large Documents
  8. Doing Asynchronous Programming in Python
  9. Database Handling
  10. Using Graphics
  11. Implementing Animation
  12. Using Google Maps
  13. Running Python Scripts on Android and iOS

商品描述(中文翻譯)

超過60個食譜,幫助您設計互動、智能和跨平台的GUI應用程式

主要特點

- 在Python中獲取簡潔的QT解決方案,解決GUI編程中的問題
- 學習如何有效實現反應式編程
- 構建定制的、強大且可靠的應用程式

書籍描述

PyQt是目前最好的跨平台界面工具包之一;它穩定、成熟且完全本地化。如果您想要對UI元素的所有方面都有控制權,那麼PyQt就是您所需要的。本書將引導您通過僅需幾行代碼即可創建完全功能的GUI應用程式所需的每個概念。

隨著您使用更多小部件擴展GUI,您將涵蓋網絡、數據庫和圖形庫,這些庫極大地增強了其功能。接下來,本書將指導您使用Qt Designer設計用戶界面,並實現和測試對話框、事件、剪貼板和拖放功能,以自定義您的GUI。您將學習各種主題,例如外觀自定義、GUI動畫、圖形渲染、實現Google Maps等。最後,本書將帶您了解Qt5如何幫助您創建與Android和iOS兼容的跨平台應用程式。通過有趣且有趣的食譜,您將能夠使用PyQt開發功能強大且吸引人的軟體,從而擴展您對GUI的知識。

您將學到什麼

- 使用基本的Qt元件,例如單選按鈕、組合框和滑塊
- 使用QSpinBox和滑塊處理鼠標點擊產生的不同信號
- 使用不同的Qt佈局滿足用戶界面需求
- 創建自定義小部件並在GUI中進行自定義設置
- 在Python GUI中執行異步I/O操作和線程處理
- 在UI中使用網絡概念、網頁瀏覽和Google Maps
- 使用圖形渲染並在GUI中實現動畫
- 使您的GUI應用程式與Android和iOS設備兼容

本書適合對Python有一定了解的中級程式設計師,希望通過使用PyQT在Python中編寫強大的GUI來提升編碼技能的讀者。

目錄

1. 使用QT元件創建用戶界面
2. 事件處理-信號和插槽
3. 使用日期和時間
4. 理解面向對象編程概念
5. 理解對話框
6. 理解佈局
7. 使用網絡和管理大型文件
8. 在Python中進行異步編程
9. 數據庫處理
10. 使用圖形
11. 實現動畫
12. 使用Google Maps
13. 在Android和iOS上運行Python腳本