From 3c751b46494c3754e5054f09f7a858f2b2228928 Mon Sep 17 00:00:00 2001 From: Irony <892768447@qq.com> Date: Tue, 12 Mar 2019 00:08:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .settings/org.eclipse.core.resources.prefs | 1 + QPropertyAnimation/README.md | 2 +- QWebEngineView/README.md | 2 +- README.md | 226 +++++++++++++++------ 4 files changed, 166 insertions(+), 65 deletions(-) diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs index 7539c6b..4bfe9d2 100644 --- a/.settings/org.eclipse.core.resources.prefs +++ b/.settings/org.eclipse.core.resources.prefs @@ -19,6 +19,7 @@ encoding//Demo/WindowNotify.py=utf-8 encoding//QChart/LineChart.py=utf-8 encoding//QFont/AwesomeFont.py=utf-8 encoding//QFont/Lib/FontAwesome.py=utf-8 +encoding//QGraphicsDropShadowEffect/ShadowEffect.py=utf-8 encoding//QListView/CustomWidgetSortItem.py=utf-8 encoding//QListView/SortItemByRole.py=utf-8 encoding//QMessageBox/CustomColorIcon.py=utf-8 diff --git a/QPropertyAnimation/README.md b/QPropertyAnimation/README.md index 6becc90..1ea9a22 100644 --- a/QPropertyAnimation/README.md +++ b/QPropertyAnimation/README.md @@ -96,7 +96,7 @@ def findClose(points): ![RlatticeEffect](ScreenShot/RlatticeEffect.gif) -## 5、页面切换/图片轮播动画 +## 4、页面切换/图片轮播动画 [运行 PageSwitching.py](PageSwitching.py) 1. 使用`QPropertyAnimation`对`QStackedWidget`中的子控件进行pos位移操作实现动画切换特效 diff --git a/QWebEngineView/README.md b/QWebEngineView/README.md index 5650216..2d95f43 100644 --- a/QWebEngineView/README.md +++ b/QWebEngineView/README.md @@ -1,6 +1,6 @@ # QWebEngineView -## 1、QWebEngineView +## 1、获取Cookie [运行 GetCookie.py](GetCookie.py) 通过`QWebEngineProfile`中得到的`cookieStore`并绑定它的`cookieAdded`信号来得到Cookie diff --git a/README.md b/README.md index 93d55ba..7f28e87 100644 --- a/README.md +++ b/README.md @@ -8,69 +8,169 @@ https://pyqt5.com 社区是专门针对PyQt5学习和提升开设的博客网站 ## 目录 -| 分类 | 目录 | -|:-------|:-------| -| Demo | [Demo](Demo) -| ActiveX | [QAxWidget](QAxWidget) -| 日历 | [QCalendarWidget](QCalendarWidget) -| 图标 | [QChart](QChart) -| 复选框 | [QCheckBox](QCheckBox) -| 列视图 | [QColumnView](QColumnView) -| 组合框 | [QComboBox](QComboBox) -| 日期时间 | [QDateTime](QDateTime) -| 日期时间编辑 | [QDateTimeEdit](QDateTimeEdit) -| 刻度盘 | [QDial](QDial) -| 停靠窗口 | [QDockWidget](QDockWidget) -| 双精度编辑 | [QDoubleSpinBox](QDoubleSpinBox) -| 文件系统模型 | [QFileSystemModel](QFileSystemModel) -| 流布局 | [QFlowLayout](QFlowLayout) -| 字体选择 | [QFontComboBox](QFontComboBox) -| 表单布局 | [QFormLayout](QFormLayout) -| 边框容器 | [QFrame](QFrame) -| 边框阴影 | [QGraphicsDropShadowEffect](QGraphicsDropShadowEffect) -| 图形视图 | [QGraphicsView](QGraphicsView) -| 网格布局 | [QGridLayout](QGridLayout) -| 分组容器 | [QGroupBox](QGroupBox) -| 横向布局 | [QHBoxLayout](QHBoxLayout) -| 文本图片 | [QLabel](QLabel) -| 类液晶屏显示 | [QLCDNumber](QLCDNumber) -| 行输入框 | [QLineEdit](QLineEdit) -| 列表视图 | [QListView](QListView) -| 列表控件 | [QListWidget](QListWidget) -| 子区域 | [QMdiArea](QMdiArea) -| 菜单 | [QMenu](QMenu) -| 消息提示框 | [QMessageBox](QMessageBox) -| OpenGL | [QOpenGLWidget](QOpenGLWidget) -| 纯文本 | [QPlainTextEdit](QPlainTextEdit) -| 进度条 | [QProgressBar](QProgressBar) -| 属性动画 | [QPropertyAnimation](QPropertyAnimation) -| 代理样式 | [QProxyStyle](QProxyStyle) -| 按钮 | [QPushButton](QPushButton) -| 单选框 | [QRadioButton](QRadioButton) -| 滚动区 | [QScrollArea](QScrollArea) -| 滑动条 | [QScrollBar](QScrollBar) -| 串口 | [QSerialPort](QSerialPort) -| 拉动条 | [QSlider](QSlider) -| 拉伸条 | [QSpacerItem](QSpacerItem) -| 单精度编辑 | [QSpinBox](QSpinBox) -| 拆分窗口 | [QSplitter](QSplitter) -| 堆叠布局 | [QStackedLayout](QStackedLayout) -| 堆叠控件 | [QStackedWidget](QStackedWidget) -| 表格视图 | [QTableView](QTableView) -| 表格控件 | [QTableWidget](QTableWidget) -| 多标签 | [QTabWidget](QTabWidget) -| 富文本 | [QTextBrowser](QTextBrowser) -| 多行富文本 | [QTextEdit](QTextEdit) -| 多线程 | [QThread](QThread) -| 时间编辑 | [QTimeEdit](QTimeEdit) -| 工具箱 | [QToolBox](QToolBox) -| 工具按钮 | [QToolButton](QToolButton) -| 树形视图 | [QTreeView](QTreeView) -| 树形控件 | [QTreeWidget](QTreeWidget) -| 纵向布局 | [QVBoxLayout](QVBoxLayout) -| WebEngine | [QWebEngineView](QWebEngineView) -| WebView | [QWebView](QWebView) -| QWidget | [QWidget](QWidget) +- Layouts + - [QVBoxLayout](QVBoxLayout) + - [QHBoxLayout](QHBoxLayout) + - [QGridLayout](QGridLayout) + - [腾讯视频热播列表](QGridLayout/HotPlaylist.py) + - [QFormLayout](QFormLayout) + - [QFlowLayout](QFlowLayout) + - [腾讯视频热播列表](QFlowLayout/HotPlaylist.py) + +- Spacers + - [Horizontal Spacer](QSpacerItem) + - [Vertical Spacer](QSpacerItem) + +- Buttons + - [QPushButton](QPushButton) + - [普通样式](QPushButton/NormalStyle.py) + - [按钮底部线条进度](QPushButton/BottomLineProgress.py) + - [按钮文字旋转进度](QPushButton/FontRotate.py) + - [QToolButton](QToolButton) + - [QRadioButton](QRadioButton) + - [QCheckBox](QCheckBox) + +- Item Views + - [QListView](QListView) + - [显示自定义Widget](QListView/CustomWidgetItem.py) + - [显示自定义Widget并排序](QListView/CustomWidgetSortItem.py) + - [自定义角色排序](QListView/SortItemByRole.py) + - [QTreeView](QTreeView) + - [QTableView](QTableView) + - [表格内容复制](QTableView/CopyContent.py) + - [QColumnView](QColumnView) + - [QUndoView](QUndoView) + +- Item Widgets + - [QListWidget](QListWidget) + - [删除自定义Item](QListWidget/DeleteCustomItem.py) + - [自定义可拖拽Item](QListWidget/DragDrop.py) + - [腾讯视频热播列表](QListWidget/HotPlaylist.py) + - [QTreeWidget](QTreeWidget) + - [通过json数据生成树形结构](QTreeWidget/ParsingJson.py) + - [QTableWidget](QTableWidget) + - [Sqlalchemy动态拼接字段查询显示表格](QTableWidget/SqlQuery.py) + +- Containers + - [QGroupBox](QGroupBox) + - [QScrollArea](QScrollArea) + - [仿QQ设置面板](QScrollArea/QQSettingPanel.py) + - [QToolBox](QToolBox) + - [QTabWidget](QTabWidget) + - [QStackedWidget](QStackedWidget) + - [左侧选项卡](QStackedWidget/LeftTabStacked.py) + - [QFrame](QFrame) + - [QWidget](QWidget) + - [样式表测试](QWidget/WidgetStyle.py) + - [QMdiArea](QMdiArea) + - [QDockWidget](QDockWidget) + +- Input Widgets + - [QComboBox](QComboBox) + - [下拉数据关联](QComboBox/CityLinkage.py) + - [QFontComboBox](QFontComboBox) + - [QLineEdit](QLineEdit) + - [QTextEdit](QTextEdit) + - [文本查找高亮](QTextEdit/HighlightText.py) + - [QPlainTextEdit](QPlainTextEdit) + - [QSpinBox](QSpinBox) + - [QDoubleSpinBox](QDoubleSpinBox) + - [QTimeEdit](QTimeEdit) + - [QDateTime](QDateTime) + - [QDial](QDial) + - [QScrollBar](QScrollBar) + - [滚动条样式美化](QScrollBar/StyleScrollBar.py) + - [QSlider](QSlider) + - [滑动条点击定位](QSlider/ClickJumpSlider.py) + - [双层圆环样式](QSlider/QssQSlider.py) + +- Display Widgets + - [QLabel](QLabel) + - [图片加载显示](QLabel/ShowImage.py) + - [图片旋转](QLabel/ImageRotate.py) + - [仿网页图片错位显示](QLabel/ImageSlipped.py) + - [显示.9格式图片(气泡)](QLabel/NinePatch.py) + - [圆形图片](QLabel/CircleImage.py) + - [QTextBrowser](QTextBrowser) + - [QGraphicsView](QGraphicsView) + - [绘制世界地图](QGraphicsView/WorldMap.py) + - [添加QWidget](QGraphicsView/AddQWidget.py) + - [QCalendarWidget](QCalendarWidget) + - [QSS美化日历样式](QCalendarWidget/CalendarQssStyle.py) + - [QLCDNumber](QLCDNumber) + - [QProgressBar](QProgressBar) + - [常规样式美化](QProgressBar/SimpleStyle.py) + - [圆圈进度条](QProgressBar/RoundProgressBar.py) + - [百分比进度条](QProgressBar/PercentProgressBar.py) + - [Metro进度条](QProgressBar/MetroCircleProgress.py) + - [水波纹进度条](QProgressBar/WaterProgressBar.py) + - [QOpenGLWidget](QOpenGLWidget) + - [QWebView](QWebView) + - [梦幻树](QWebView/DreamTree.py) + - [获取Cookie](QWebView/GetCookie.py) + - [QWebEngineView](QWebEngineView) + - [获取Cookie](QWebEngineView/GetCookie.py) + +- [QThread](QThread) + - [继承QThread](QThread/InheritQThread.py) + - [moveToThread](QThread/moveToThread.py) + - [线程挂起恢复](QThread/SuspendThread.py) + - [线程休眠唤醒](QThread/WakeupThread.py) + +- [QtQuick](QtQuick) + - [Flat样式](QtQuick/FlatStyle.py) + +- [QChart](QChart) + - [折线图](QChart/LineChart.py) + - [折线堆叠图](QChart/LineStack.py) + - [柱状堆叠图](QChart/BarStack.py) + - [LineChart自定义xy轴](QChart/CustomXYaxis.py) + - [ToolTip提示](QChart/ToolTip.py) + +- [Animation](QPropertyAnimation) + - [窗口淡入淡出](QPropertyAnimation/FadeInOut.py) + - [右键菜单动画](QPropertyAnimation/MenuAnimation.py) + - [点阵特效](QPropertyAnimation/RlatticeEffect.py) + - [页面切换/图片轮播动画](QPropertyAnimation/PageSwitching.py) + +- Others + - [QFont](QFont) + - [加载自定义字体](QFont/AwesomeFont.py) + - [QMenu](QMenu) + - [菜单设置多选并且不关闭](QMenu/MultiSelect.py) + - [QAxWidget](QAxWidget) + - [显示Word、Excel、PDF文件](QAxWidget/ViewOffice.py) + - [QSplitter](QSplitter) + - [分割窗口的分割条重绘](QSplitter/RewriteHandle.py) + - [QSerialPort](QSerialPort) + - [串口调试小助手](QSerialPort/SerialDebugAssistant.py) + - [QProxyStyle](QProxyStyle) + - [Tab文字方向](QProxyStyle/TabTextDirection.py) + - [QMessageBox](QMessageBox) + - [消息对话框倒计时关闭](QMessageBox/CountDownClose.py) + - [自定义图标等](QMessageBox/CustomColorIcon.py) + - [QFileSystemModel](QFileSystemModel) + - [自定义图标](QFileSystemModel/CustomIcon.py) + - [QGraphicsDropShadowEffect](QGraphicsDropShadowEffect) + - [边框阴影动画](QGraphicsDropShadowEffect/ShadowEffect.py) + +- [Demo](Demo) + - [重启窗口Widget](Demo/RestartWindow.py) + - [简单的窗口贴边隐藏](Demo/WeltHideWindow.py) + - [嵌入外部窗口](Demo/EmbedWindow.py) + - [简单跟随其它窗口](Demo/FollowWindow.py) + - [简单探测窗口和放大截图](Demo/ProbeWindow.py) + - [无边框自定义标题栏窗口](Demo/FramelessWindow.py) + - [右下角弹出框](Demo/WindowNotify.py) + - [程序重启](Demo/AutoRestart.py) + - [自定义属性](Demo/CustomProperties.py) + - [调用截图DLL](Demo/ScreenShotDll.py) + - [单实例应用](Demo/SingleApplication.py) + - [简单的右下角气泡提示](Demo/BubbleTips.py) + - [右侧消息通知栏](Demo/Notification.py) + - [验证码控件](Demo/VerificationCode.py) + - [人脸特征点](Demo/FacePoints.py) + - [使用Threading](Demo/QtThreading.py) # QQ群