售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
PySide GUI Application Development Second Edition
Table of Contents
PySide GUI Application Development Second Edition
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Started with PySide
Introducing PySide
Hello, GUI
Setting up PySide
Installing PySide using Windows
Installing PySide using Mac OS X
Installing PySide using Linux
Building PySide on Windows
Building PySide on Linux
Prerequisites
Building PySide
Mac OS X
Importing PySide objects
First PySide application
Exception handling as a practice
Summary
2. Entering through Windows
Creating a simple window
Creating the application icon
Showing a tooltip
Adding a button
Centering the window on the screen
About box
Tracking time using timers
Windows style
Summary
3. Main Windows and Layout Management
Creating the main window
Status bar
Menu bar
The central widget
Adding a menu bar
Adding menus
Toolbar
Layout management
Absolute positioning
Layout containers
QBoxLayout
QHBoxLayout
QVBoxLayout
QGridLayout
QFormLayout
QStackedLayout
SDI and MDI
A simple text editor
Summary
4. Events and Signals
Event management
Event loop
Event processing
Reimplementing event handlers
Installing event filters
Reimplementing the notify() function
Signals and slots
Drag and drop technique
Drawing shapes
Graphics and effects
Summary
5. Dialogs and Widgets
Built-in dialogs
QFileDialog
QInputDialog
QColorDialog
QPrintDialog
Custom dialogs
Widgets at a glance
Custom widget
Implementation of MDI
Summary
6. Database Handling
Connecting to the database
Executing SQL queries
Executing a query
Inserting, updating and deleting records
Navigating records
Database transactions
Table and form views
QSqlQueryModel
QSqlTableModel
QSqlRelationalTableModel
Table view
Form view
Viewing relations in table views
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜