2018-05-06 02:25:16 +08:00
|
|
|
|
# 各种各样的PyQt测试和例子
|
|
|
|
|
|
2018-10-31 09:56:45 +08:00
|
|
|
|
[![Blog](https://img.shields.io/badge/blog-pyqt5-green.svg)](https://pyqt5.com)
|
|
|
|
|
[![Gitter version](https://img.shields.io/gitter/room/gitterHQ/gitter.svg)](https://gitter.im/PyQt-5/Lobby)
|
|
|
|
|
|
2018-10-27 15:30:30 +08:00
|
|
|
|
本社区是专门针对PyQt5学习和提升开设的博客网站,分析大家平时学习中记录的笔记和例子,以及对遇到的问题进行收集整理。
|
2018-09-25 23:20:03 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [ActiveX](ActiveX)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-11-02 23:41:55 +08:00
|
|
|
|
1. [显示Word、Excel、Pdf文件](ActiveX/显示word_excel_pdf.py)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [按钮](按钮)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [输入框](输入框)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-10-28 23:29:23 +08:00
|
|
|
|
1. [QTextEdit](输入框/QTextEdit)
|
2018-11-02 23:41:55 +08:00
|
|
|
|
1. [文本高亮](输入框/QTextEdit/简单查找文字并高亮.py)
|
2018-10-28 23:29:23 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [菜单](菜单)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-10-28 00:24:47 +08:00
|
|
|
|
1. [菜单多选不关闭](菜单/菜单多选不关闭.py)
|
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [列表](列表)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-10-28 23:29:23 +08:00
|
|
|
|
1. [QListWidget](列表/QListWidget)
|
|
|
|
|
1. [自定义可拖拽Item](列表/QListWidget/自定义可拖拽Item.py)
|
|
|
|
|
1. [腾讯视频热播列表](列表/QListWidget/腾讯视频热播列表)
|
2018-11-04 18:10:41 +08:00
|
|
|
|
1. [删除自定义Item](列表/QListWidget/删除自定义Item.py)
|
2018-10-27 23:47:59 +08:00
|
|
|
|
|
2018-10-28 23:29:23 +08:00
|
|
|
|
1. [QListView](列表/QListView)
|
|
|
|
|
1. [自定义Widget](列表/QListView/显示自定义Widget.py)
|
|
|
|
|
1. [自定义Widget并排序](列表/QListView/显示自定义Widget并排序.py)
|
2018-10-27 23:47:59 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [树结构](树结构)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-10-28 23:29:23 +08:00
|
|
|
|
1. [QTreeWidget](树结构/QTreeWidget)
|
2018-11-02 23:41:55 +08:00
|
|
|
|
1. [Json生成QTreeWidget](树结构/QTreeWidget/Json生成QTreeWidget)
|
2018-10-27 23:47:59 +08:00
|
|
|
|
|
2018-10-28 23:29:23 +08:00
|
|
|
|
1. [QTreeView](树结构/QTreeView)
|
2018-10-27 23:47:59 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [表格](表格)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-10-28 23:29:23 +08:00
|
|
|
|
1. [QTableWidget](表格/QTableWidget)
|
|
|
|
|
1. [数据库查询显示表格](表格/QTableWidget/数据库查询显示表格)
|
2018-10-28 16:36:14 +08:00
|
|
|
|
|
2018-10-28 23:29:23 +08:00
|
|
|
|
1. [QTreeView](表格/QTableView)
|
|
|
|
|
1. [表格内容复制](表格/QTableView/表格内容复制.py)
|
2018-10-28 00:24:47 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [级联](级联)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [日期](日期)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [图片](图片)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-10-28 23:29:23 +08:00
|
|
|
|
1. [图片加载、动态图](图片/图片加载)
|
|
|
|
|
1. [显示.9.png格式图片](图片/显示.9格式图片)
|
2018-11-03 16:58:02 +08:00
|
|
|
|
1. [仿网页图片错位特效](图片/仿网页图片错位特效.py)
|
2018-10-28 23:29:23 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [下拉框](下拉框)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-10-28 23:29:23 +08:00
|
|
|
|
1. [下拉选择联动](下拉框/下拉选择联动)
|
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [滚动条](滚动条)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-11-05 22:55:57 +08:00
|
|
|
|
## [滑动条](滑动条)
|
|
|
|
|
|
|
|
|
|
1. [滑动条点击定位](滑动条/滑动条点击定位.py)
|
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [进度条](进度条)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [窗口](窗口)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-10-28 00:24:47 +08:00
|
|
|
|
1. [窗口重启](窗口/窗口重启.py)
|
2018-10-28 23:29:23 +08:00
|
|
|
|
1. [分割窗口的分割条重写](窗口/分割窗口的分割条重写.py)
|
|
|
|
|
1. [简单的窗口贴边隐藏](窗口/简单的窗口贴边隐藏.py)
|
|
|
|
|
1. [简单探测窗口和放大截图](窗口/简单探测窗口和放大截图.py)
|
|
|
|
|
1. [嵌入外部窗口](窗口/嵌入外部窗口.py)
|
|
|
|
|
1. [外部窗口跟随](窗口/外部窗口跟随.py)
|
|
|
|
|
1. [无边框自定义标题栏窗口](窗口/无边框自定义标题栏窗口)
|
|
|
|
|
1. [消息对话框倒计时关闭](窗口/消息对话框倒计时关闭.py)
|
2018-10-28 16:36:14 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [多页面](多页面)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
1. [QScrollArea](QScrollArea/)
|
2018-10-28 23:29:23 +08:00
|
|
|
|
1. [仿QQ设置面板](多页面/QScrollArea/仿QQ设置面板)
|
2018-10-28 16:36:14 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
1. [QStackedWidget](QStackedWidget/)
|
2018-10-29 23:41:54 +08:00
|
|
|
|
1. [左侧选项卡](多页面/QStackedWidget/左侧选项卡)
|
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [多线程](多线程)
|
|
|
|
|
|
|
|
|
|
1. [线程挂起恢复](多线程/线程挂起恢复.py)
|
|
|
|
|
1. [继承QThread](多线程/继承QThread.py)
|
|
|
|
|
1. [moveToThread](多线程/moveToThread.py)
|
|
|
|
|
|
|
|
|
|
## [美化](美化)
|
|
|
|
|
|
|
|
|
|
1. [Effect-特效](美化/Effect)
|
|
|
|
|
1. [图片按钮输入框阴影](美化/Effect/图片按钮输入框阴影.py)
|
|
|
|
|
|
|
|
|
|
1. [QCalendarWidget-日历](美化/QCalendarWidget)
|
|
|
|
|
|
|
|
|
|
1. [QFileSystemModel-模型](美化/QFileSystemModel)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
1. [QLabel-文字图片](美化/QLabel)
|
|
|
|
|
1. [圆形图片](美化/QLabel/圆形图片.py)
|
2018-10-28 00:24:47 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
1. [QMessageBox-消息对话框](美化/QMessageBox)
|
|
|
|
|
1. [方案一](美化/QMessageBox/方案一)
|
|
|
|
|
1. [方案二](美化/QMessageBox/方案二)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
1. [QProgressBar-进度条](美化/QProgressBar)
|
|
|
|
|
1. [水波纹进度条](美化/QProgressBar/水波纹进度条)
|
|
|
|
|
1. [Metro进度条](美化/QProgressBar/Metro进度条.py)
|
|
|
|
|
1. [百分比进度条](美化/QProgressBar/百分比进度条.py)
|
|
|
|
|
1. [简单样式表美化](美化/QProgressBar/简单样式表美化.py)
|
|
|
|
|
1. [圆圈进度条](美化/QProgressBar/圆圈进度条.py)
|
2018-10-28 23:29:23 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
1. [QPushButton-按钮](美化/QPushButton)
|
|
|
|
|
1. [按钮进度动画](美化/QPushButton/按钮进度动画)
|
|
|
|
|
1. [按钮常见样式](美化/QPushButton/按钮常见样式.py)
|
|
|
|
|
|
|
|
|
|
1. [QScrollBar-滚动条](美化/QScrollBar)
|
|
|
|
|
|
|
|
|
|
1. [QSlider-拉动条](美化/QSlider)
|
|
|
|
|
1. [自绘拉动条PaintQSlider](美化/QSlider/PaintQSlider.py)
|
|
|
|
|
1. [QSS拉动条QssQSlider](美化/QSlider/QssQSlider.py)
|
|
|
|
|
|
|
|
|
|
1. [QWidget-窗口](美化/QWidget)
|
|
|
|
|
1. [自定义QWidget样式测试](美化/QWidget/QWidget样式测试.py)
|
|
|
|
|
|
|
|
|
|
## [动画](动画)
|
2018-10-28 00:24:47 +08:00
|
|
|
|
|
|
|
|
|
1. [淡入淡出](动画/淡入淡出.py)
|
2018-10-28 23:29:23 +08:00
|
|
|
|
1. [右键菜单动画](动画/右键菜单动画.py)
|
2018-10-28 00:24:47 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [图表](图表)
|
|
|
|
|
|
|
|
|
|
1. [仿echarts折线图](图表/PyQtChart/charts/line/LineStack.py)
|
|
|
|
|
1. [仿echarts柱状图](图表/PyQtChart/charts/line/BarStack.py)
|
|
|
|
|
1. [折线图](图表/PyQtChart/demo/LineChart.py)
|
|
|
|
|
1. [折线图自定义xy轴](图表/PyQtChart/demo/LineChart自定义xy轴.py)
|
|
|
|
|
1. [ToolTip提示](图表/PyQtChart/demo/ToolTip.py)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [网络](网络)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-10-28 23:29:23 +08:00
|
|
|
|
1. [窗口配合异步Http](网络/窗口配合异步Http)
|
|
|
|
|
1. [控制小车](网络/控制小车)
|
2018-10-28 00:24:47 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [浏览器](浏览器)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-10-28 23:29:23 +08:00
|
|
|
|
1. [QWebView](浏览器/QWebView)
|
|
|
|
|
1. [梦幻树](浏览器/QWebView/梦幻树)
|
2018-10-29 23:41:54 +08:00
|
|
|
|
1. [获取Cookie](浏览器/QWebView/获取Cookie)
|
|
|
|
|
|
2018-10-28 23:29:23 +08:00
|
|
|
|
1. [QWebEngineView](浏览器/QWebEngineView)
|
2018-10-29 23:41:54 +08:00
|
|
|
|
1. [获取Cookie](浏览器/QWebEngineView/获取Cookie)
|
2018-10-29 23:46:14 +08:00
|
|
|
|
1. [下载文件](partner_625781186/6.QWebEngineView下载文件)
|
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [QML](QML)
|
2018-10-29 23:41:54 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [图形视图](图形视图)
|
2018-10-27 15:30:30 +08:00
|
|
|
|
|
2018-11-02 17:57:50 +08:00
|
|
|
|
1. [世界地图](图形视图/世界地图)
|
2018-11-03 20:15:02 +08:00
|
|
|
|
1. [添加QWidget](图形视图/添加QWidget.py)
|
2018-11-02 17:57:50 +08:00
|
|
|
|
1. [显示图片及缩放](图形视图/显示图片及缩放.py)
|
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
## [其它](其它)
|
2018-09-05 02:41:36 +08:00
|
|
|
|
|
2018-10-28 23:29:23 +08:00
|
|
|
|
1. [C和C++扩展](其它/C和C++扩展)
|
|
|
|
|
1. [直接生成pyd](其它/C和C++扩展/pydext)
|
2018-11-02 17:57:50 +08:00
|
|
|
|
2. [使用pyx和c++](其它/C和C++扩展/pyx和c++)
|
|
|
|
|
3. [python转pyd](其它/C和C++扩展/py转pyd)
|
2018-10-28 23:29:23 +08:00
|
|
|
|
|
|
|
|
|
1. [QRC资源文件使用](其它/QRC资源文件使用)
|
|
|
|
|
1. [程序重启](其它/程序重启)
|
|
|
|
|
1. [单实例应用](其它/单实例应用)
|
|
|
|
|
1. [调用截图dll(只能用32位)](其它/调用截图dll(只能用32位))
|
|
|
|
|
1. [全局热键](其它/全局热键)
|
|
|
|
|
1. [人脸描点检测](其它/人脸描点检测)
|
|
|
|
|
1. [自定义import](其它/自定义import)
|
|
|
|
|
1. [自动更新](其它/自动更新)
|
|
|
|
|
1. [自定义属性测试](其它/自定义属性测试)
|
|
|
|
|
1. [验证码控件](其它/验证码控件)
|
|
|
|
|
1. [右下角弹出框](其它/右下角弹出框)
|
|
|
|
|
1. [消息提示](其它/消息提示)
|
|
|
|
|
1. [字体测试](其它/字体测试)
|
2018-10-28 00:24:47 +08:00
|
|
|
|
|
2018-05-06 02:25:16 +08:00
|
|
|
|
# QQ群
|
2018-11-02 17:57:50 +08:00
|
|
|
|
|
2018-05-06 02:25:16 +08:00
|
|
|
|
- [PyQt & PySide](https://jq.qq.com/?_wv=1027&k=50LWvn9)
|
2018-10-29 23:43:06 +08:00
|
|
|
|
- [PyQt 学习](https://jq.qq.com/?_wv=1027&k=5QVVEdF)
|
2018-06-11 23:33:34 +08:00
|
|
|
|
- [PyQt5小组](https://jq.qq.com/?_wv=1027&k=5cI3oRz)
|
|
|
|
|
|
2018-05-06 02:25:16 +08:00
|
|
|
|
|
2018-11-02 23:31:00 +08:00
|
|
|
|
# [Donate-打赏](Donate)
|
|
|
|
|
<a href="Donate/weixin.png" alt="微信"><img src="Donate/weixin.png" height="350" width="350"></a>or<a href="Donate/zhifubao.png" alt="支付宝"><img src="Donate/zhifubao.png" height="350" width="350"></a>
|
2018-05-06 02:25:16 +08:00
|
|
|
|
|
2018-11-02 17:57:50 +08:00
|
|
|
|
[一些Qt写的三方APP](https://github.com/892768447/PyQt/wiki/3rd-party-applications)
|