1. PyQt5 tutorial ZetCode 笔记
- Date and time
- Current date and time
a. Qt.ISOData
b. DefaultLocaleLongDate - UTC time
- Number of days
- Difference in days
- Date arithmetic
- Daylight saving time
- Unix epoch
- Julian day
便于时间相减,直接计算天数
- Current date and time
- Hello, world
- Simple example
- Icon
- Tooltip
a. Btn.sizeHint() - closeEvent
qbtn.clicked.connect(QApplication.instance().quit) - Message box
- Center
- Menus and toolbar
- Statusbar
- Menu
- Sub menu
- Check menu
- Context menu
- Toolbar
- Main window
- Layout
- QHBoxlayout
- QGridLayout
- Event and signal
- LED demo
- Key event handler
- Event object, mouse event
- Push btn event sender
- Emitting signal
- Dialog
- QDialog
- QcolorDialog and QFrame
- QFontDialog, btn.setSizePolicy
- QFileDialog, Qaction.triggered, QMainWindow
- Qwidge1
- QCheckBox
- Toggle button, color demo, Qcolor.setRed
- Qslider
- QProgressBar
- QCalendarWidge
- QWidget2
- Qpixmap, Qlabel.setPixmap
- QLineEdit
- Qsplitter
- QComBox 复选框
- Drag and Drop 稍微还是有些不理解
- Qdrag
- QMineData
- dragEnterEvent仅获取对应的类型
- dropEvent设置drop时的动作
- QPainter
- Draw text
- Draw point
- Draw color
- drawRect, setBrush
- Qpen(line, curves, rectangle)
- Qbrush
- BezierCurve
2. Python and PyQt: Building a GUI Desktop Calculator 笔记
MVC典型流程,先画View,再设计控制逻辑Control,最后再设计计算模型Model,分步骤实现。
3. Qt Designer and Python: Build Your GUI Applications Faster 笔记
coding一个相当完整的mainwindow
4. 进一步熟悉
书籍《PyQt快速开发与实践》中介绍了一些基本内容,后续可以进一步掌握,包括设计师的使用,基础组件,布局管理,高级组件等,还是要结合实战进行更深入的学习和使用才行。
5. PythonQwt
QWT可以用于生成各种统计图,给具有专业技术背景的程序提供GUI组件和实用类,以基于2D方式的窗体不见来显示数据。
PythonQwt
Qwgt User’s Guide 6.2.0
Qt之Qwt曲线绘制
5.1. curve fitting
制作曲线调整的工具,为加速开发就基于event filter demo修改,可以适配7条曲线的调试和保存,主要改动如下:
- 支持鼠标和键盘拖动曲线,固定Y方向
- 显示7条曲线,可隐藏
- 支持曲线的导入和导出,暂时指定文件名
6. 参考链接
- The complete PyQt5 tutorial — Create GUI applications with Pyth on
- PyQt5 Reference Guide 官方文档
- PyQt5 tutorial ZetCode
- PyQt-Examples Github contains more in-depth examples for different topics
- PyQt5-Tutorial-Examples Sources and images for ZetCode’s PyQt5 tutorial
- PyQt5图形界面编程(目录) 知乎
- realpython的几个相关课程
- Python and PyQt: Building a GUI Desktop Calculator 入门制作一个计算器,手把手指导,很不错
- Qt Designer and Python: Build Your GUI Applications Faster QtDesigner的简单使用
- PyQt Layouts: Create Professional-Looking GUI Applications
- Build a Bulk File Rename Tool With Python and PyQt
- Python and PyQt: Creating Menus, Toolbars, and Status Bars
- Handling SQL Databases With PyQt: The Basics
- Use PyQt’s QThread to Prevent Freezing GUIs
- Build a Contact Book With Python, PyQt, and SQLite
- 相关的repo materials
- Qt Designer Manual
- [ PyQt入门教程 ] Qt Designer工具的使用 使用qtdesigner实现登录框和业务逻辑代码