├── .gitattributes ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── discussion---.md │ └── question---.md └── workflows │ └── mirror.yml ├── .gitignore ├── Demo ├── AutoRestart.py ├── BubbleTips.py ├── CallVirtualKeyboard.py ├── CircleLine.py ├── CustomProperties.py ├── Data │ ├── AutoRestart.exe │ ├── Images │ │ └── Cursors │ │ │ ├── 0.png │ │ │ ├── 1.png │ │ │ ├── 2.png │ │ │ ├── 3.png │ │ │ ├── 4.png │ │ │ ├── 5.png │ │ │ ├── 6.png │ │ │ └── 7.png │ ├── Qt.ico │ ├── ScreenShot.dll │ ├── dlib-19.4.0.win32-py2.7.exe │ ├── dlib-19.4.0.win32-py3.4.exe │ ├── dlib-19.4.0.win32-py3.5.exe │ ├── frameless.ui │ ├── itckrist.ttf │ ├── lbpcascades │ │ └── lbpcascade_frontalface.xml │ ├── notify.ui │ └── 背景连线动画.html ├── EmbedWindow.py ├── FacePoints.py ├── FollowWindow.py ├── FramelessDialog.py ├── FramelessWindow.py ├── GifCursor.py ├── IsSignalConnected.py ├── Lib │ ├── Application.py │ ├── FramelessWindow.py │ ├── QCursorGif.py │ ├── UiNotify.py │ ├── __init__.py │ └── ui_frameless.py ├── NativeEvent.py ├── NewFramelessWindow.py ├── Notification.py ├── ProbeWindow.py ├── QtThreading.py ├── README.en.md ├── README.md ├── RestartWindow.py ├── ScreenNotify.py ├── ScreenShot │ ├── AutoRestart.gif │ ├── BubbleTips.gif │ ├── CallVirtualKeyboard1.png │ ├── CallVirtualKeyboard2.png │ ├── CircleLine.gif │ ├── CustomProperties.png │ ├── EmbedWindow.gif │ ├── FacePoints.png │ ├── FollowWindow.gif │ ├── FramelessDialog.png │ ├── FramelessDialog1.png │ ├── FramelessWindow.gif │ ├── GifCursor.gif │ ├── IsSignalConnected.png │ ├── NewFramelessWindow.gif │ ├── Notification.gif │ ├── ProbeWindow.gif │ ├── QtThreading.gif │ ├── RestartWindow.gif │ ├── ScreenNotify.png │ ├── ScreenShotDll.gif │ ├── ShowFrameWhenDrag.gif │ ├── VerificationCode.gif │ ├── WeltHideWindow.gif │ └── WindowNotify.gif ├── ScreenShotDll.py ├── SharedMemory.py ├── ShowFrameWhenDrag.py ├── SingleApplication.py ├── VerificationCode.py ├── WeltHideWindow.py ├── WindowNotify.py └── requirements.txt ├── Donate ├── PyQt_Group.png ├── PyQt_Guild.png ├── weixin.png ├── weixin2.png ├── wxblog.jpg └── zhifubao.png ├── LICENSE ├── PyQtGraph ├── Data │ ├── __init__.py │ ├── graphAnalysis.py │ ├── graphAnalysis.ui │ ├── graphTest.py │ └── graphTest.ui ├── README.en.md ├── README.md ├── ScreenShot │ ├── GraphAnalysis.gif │ ├── function.gif │ └── mouseFlow.gif ├── graph1.py ├── mouseFlow.py ├── requirements.txt ├── testGraphAnalysis.py └── tools.py ├── QAxWidget ├── README.en.md ├── README.md ├── ScreenShot │ └── ViewOffice.png └── ViewOffice.py ├── QCalendarWidget ├── CalendarQssStyle.py ├── README.en.md ├── README.md └── ScreenShot │ └── CalendarQssStyle.gif ├── QCheckBox ├── README.en.md └── README.md ├── QColumnView ├── FileManager.py ├── README.en.md ├── README.md └── ScreenShot │ └── FileManager.png ├── QComboBox ├── CenterText.py ├── CityLinkage.py ├── Data │ └── data.json ├── Lib │ ├── CtComboBox.py │ └── __init__.py ├── README.en.md ├── README.md └── ScreenShot │ ├── CenterText.png │ └── CityLinkage.gif ├── QDateTime ├── README.en.md └── README.md ├── QDateTimeEdit ├── README.en.md └── README.md ├── QDial ├── README.en.md └── README.md ├── QDockWidget ├── README.en.md └── README.md ├── QDoubleSpinBox ├── README.en.md └── README.md ├── QFileSystemModel ├── CustomIcon.py ├── Data │ └── icons │ │ ├── file.png │ │ └── folder.png ├── README.en.md ├── README.md └── ScreenShot │ └── CustomIcon.png ├── QFlowLayout ├── Data │ ├── CoverItemWidget.ui │ ├── CoverLabel.ui │ ├── Svg_icon_headset_sm.svg │ ├── Svg_icon_loading.svg │ ├── Svg_icon_play_sm.svg │ └── pic_v.png ├── HotPlaylist.py ├── Lib │ ├── CoverItemWidget.py │ ├── CoverLabel.py │ ├── Ui_CoverItemWidget.py │ ├── Ui_CoverLabel.py │ ├── __init__.py │ └── flowlayout.py ├── README.en.md ├── README.md ├── ScreenShot │ └── HotPlaylist.gif ├── requirements.txt └── testxpath.py ├── QFont ├── AwesomeFont.py ├── Data │ ├── Fonts │ │ └── fontawesome-webfont.ttf │ └── 提取字符 │ │ ├── cheatsheet.txt │ │ ├── get.py │ │ └── result.txt ├── Lib │ ├── FontAwesome.py │ └── __init__.py ├── README.md └── ScreenShot │ └── AwesomeFont.png ├── QFontComboBox ├── README.en.md └── README.md ├── QFormLayout ├── README.en.md └── README.md ├── QFrame ├── README.en.md └── README.md ├── QGraphicsDropShadowEffect ├── Data │ └── 1.jpg ├── Lib │ ├── AnimationShadowEffect.py │ └── __init__.py ├── README.en.md ├── README.md ├── ScreenShot │ └── ShadowEffect.gif └── ShadowEffect.py ├── QGraphicsView ├── AddQWidget.py ├── Data │ ├── bg.jpg │ ├── icons │ │ ├── basic.png │ │ ├── business.png │ │ ├── cloudService.png │ │ ├── dataBase.png │ │ ├── engineering.png │ │ ├── network.png │ │ ├── science.png │ │ ├── softwareEngineering.png │ │ └── wireframe.png │ └── world.json ├── DragGraphics.py ├── ImageView.py ├── README.en.md ├── README.md ├── ScreenShot │ ├── AddQWidget.png │ ├── DragGraphics.gif │ ├── ImageView.gif │ └── WorldMap.gif └── WorldMap.py ├── QGridLayout ├── Data │ ├── CoverItemWidget.ui │ ├── CoverLabel.ui │ ├── Svg_icon_headset_sm.svg │ ├── Svg_icon_loading.svg │ ├── Svg_icon_play_sm.svg │ └── pic_v.png ├── HotPlaylist.py ├── Lib │ ├── CoverItemWidget.py │ ├── CoverLabel.py │ ├── Ui_CoverItemWidget.py │ ├── Ui_CoverLabel.py │ └── __init__.py ├── README.en.md ├── README.md └── ScreenShot │ └── HotPlaylist.gif ├── QGroupBox ├── README.en.md └── README.md ├── QHBoxLayout ├── Data │ ├── BaseHorizontalLayout.ui │ ├── HorizontalLayoutMargin.ui │ └── HorizontalLayoutStretch.ui ├── README.en.md ├── README.md └── ScreenShot │ ├── BaseHorizontalLayout.png │ ├── HorizontalLayoutMargin.png │ └── HorizontalLayoutStretch.png ├── QLCDNumber ├── README.en.md └── README.md ├── QLabel ├── CircleImage.py ├── Data │ ├── Images │ │ └── head.jpg │ ├── bg.png │ ├── bg1.jpg │ ├── fg.png │ ├── fg1.png │ ├── head.jpg │ ├── head.xpm │ ├── loading.gif │ ├── res.qrc │ ├── res.rcc │ ├── res2.qrc │ └── skin_aio_friend_bubble_pressed.9.png ├── ImageRotate.py ├── ImageSlipped.py ├── Lib │ ├── NinePatch.py │ ├── QtNinePatch │ │ ├── QtNinePatch.cpp │ │ ├── QtNinePatch.h │ │ ├── QtNinePatch.pro │ │ ├── QtNinePatch.pro.user │ │ └── sip │ │ │ ├── QtNinePatch.dll │ │ │ ├── QtNinePatch.pyd │ │ │ ├── QtNinePatch.sip │ │ │ ├── __init__.py │ │ │ └── configure.py │ ├── QtNinePatch2.py │ ├── __init__.py │ ├── res_rc.py │ └── xpmres.py ├── NinePatch.py ├── QtNinePatch.py ├── QtNinePatch2.py ├── README.en.md ├── README.md ├── ScreenShot │ ├── CircleImage.png │ ├── ImageRotate.gif │ ├── ImageSlipped.gif │ ├── ImageSlipped2.gif │ ├── NinePatchImage.gif │ └── ShowImage.gif ├── ShowImage.py └── Tools │ ├── Image2XPM.exe │ └── rcc.exe ├── QLineEdit ├── README.en.md └── README.md ├── QListView ├── CustomWidgetItem.py ├── CustomWidgetSortItem.py ├── ImageView.py ├── README.en.md ├── README.md ├── ScreenShot │ ├── CustomWidgetItem.png │ ├── CustomWidgetSortItem.gif │ └── SortItemByRole.gif └── SortItemByRole.py ├── QListWidget ├── Data │ ├── CoverItemWidget.ui │ ├── CoverLabel.ui │ ├── Svg_icon_headset_sm.svg │ ├── Svg_icon_loading.svg │ ├── Svg_icon_play_sm.svg │ └── pic_v.png ├── DeleteCustomItem.py ├── DragDrop.py ├── FoldWidget.py ├── HotPlaylist.py ├── Lib │ ├── CoverItemWidget.py │ ├── CoverLabel.py │ ├── Ui_CoverItemWidget.py │ ├── Ui_CoverLabel.py │ └── __init__.py ├── README.en.md ├── README.md ├── ScreenShot │ ├── DeleteCustomItem.gif │ ├── DragDrop.gif │ ├── FoldWidget.gif │ ├── HotPlaylist.gif │ └── SignalsExample.gif └── SignalsExample.py ├── QMdiArea ├── README.en.md └── README.md ├── QMenu ├── MultiSelect.py ├── QQMenu.py ├── README.en.md ├── README.md └── ScreenShot │ ├── MultiSelect.gif │ └── QQMenu.gif ├── QMessageBox ├── ChineseText.py ├── CountDownClose.py ├── CustomColorIcon.py ├── Data │ └── icons │ │ ├── Abort.png │ │ ├── Apply.png │ │ ├── Cancel.png │ │ ├── Close.png │ │ ├── Discard.png │ │ ├── Help.png │ │ ├── Ignore.png │ │ ├── No.png │ │ ├── NoToAll.png │ │ ├── Ok.png │ │ ├── Open.png │ │ ├── Reset.png │ │ ├── RestoreDefaults.png │ │ ├── Retry.png │ │ ├── Save.png │ │ ├── SaveAll.png │ │ ├── Yes.png │ │ └── YesToAll.png ├── README.en.md ├── README.md └── ScreenShot │ ├── ChineseText.png │ ├── CountDownClose.gif │ └── CustomColorIcon.png ├── QMetaObject ├── CallInThread.py ├── README.en.md ├── README.md └── ScreenShot │ └── CallInThread.png ├── QOpenGLWidget ├── README.en.md └── README.md ├── QPainter ├── Data │ └── qt-logo.png ├── Draw.py ├── README.en.md ├── README.md ├── ScreenShot │ ├── Draw.gif │ └── StockDialog.gif └── StockDialog.py ├── QPlainTextEdit ├── README.en.md └── README.md ├── QProcess ├── GetCmdResult.py ├── InteractiveRun.py ├── README.en.md ├── README.md └── ScreenShot │ ├── GetCmdResult.gif │ └── InteractiveRun.gif ├── QProgressBar ├── ColourfulProgress.py ├── Lib │ ├── DWaterProgress.py │ ├── QStyleAnimation.py │ ├── WaterRippleProgressBar.py │ └── __init__.py ├── MetroCircleProgress.py ├── PercentProgressBar.py ├── README.en.md ├── README.md ├── RoundProgressBar.py ├── ScreenShot │ ├── ColourfulProgress.gif │ ├── MetroCircleProgress.gif │ ├── PercentProgressBar.gif │ ├── RoundProgressBar.gif │ ├── SimpleStyle.gif │ ├── WaterProgress.gif │ └── WaterProgressBar.gif ├── SimpleStyle.py ├── WaterProgress.py └── WaterProgressBar.py ├── QPropertyAnimation ├── Data │ ├── 1.png │ ├── 2.png │ ├── Images │ │ ├── 1.png │ │ ├── 2.png │ │ ├── 3.png │ │ ├── 4.png │ │ ├── 5.png │ │ ├── 6.png │ │ ├── 7.png │ │ ├── 8.png │ │ └── 9.png │ ├── UiImageSlider.ui │ ├── html │ │ ├── css │ │ │ ├── component.css │ │ │ ├── demo.css │ │ │ └── normalize.css │ │ ├── img │ │ │ └── demo-1-bg.jpg │ │ ├── index.html │ │ └── js │ │ │ ├── EasePack.min.js │ │ │ ├── TweenLite.min.js │ │ │ ├── demo-1.js │ │ │ └── rAF.js │ ├── pointtool.pyx │ └── setup.py ├── FadeInOut.py ├── FlipWidgetAnimation.py ├── Lib │ ├── FlipWidget.py │ ├── SlidingStackedWidget.py │ ├── UiImageSlider.py │ ├── __init__.py │ └── pointtool.pyd ├── MenuAnimation.py ├── PageSwitching.py ├── README.en.md ├── README.md ├── RlatticeEffect.py ├── ScreenShot │ ├── FadeInOut.gif │ ├── FlipWidgetAnimation.gif │ ├── MenuAnimation.gif │ ├── PageSwitching.gif │ ├── RlatticeEffect.gif │ └── ShakeWindow.gif └── ShakeWindow.py ├── QProxyStyle ├── Lib │ ├── TabBarStyle.py │ ├── TabCornerStyle.py │ └── __init__.py ├── README.en.md ├── README.md ├── ScreenShot │ ├── TabCornerStyle.png │ └── TabTextDirection.png ├── TabCornerWidget.py └── TabTextDirection.py ├── QPushButton ├── BottomLineProgress.py ├── Data │ ├── Fonts │ │ └── FontAwesome │ │ │ └── fontawesome-webfont.ttf │ └── Images │ │ └── avatar.jpg ├── FontRotate.py ├── NormalStyle.py ├── README.en.md ├── README.md ├── RotateButton.py ├── RubberBandButton.py ├── ScreenShot │ ├── BottomLineProgress.gif │ ├── FontRotate.gif │ ├── NormalStyle.gif │ ├── RotateButton.gif │ ├── RubberBandButton.gif │ └── SignalsExample.gif └── SignalsExample.py ├── QRadioButton ├── README.en.md └── README.md ├── QScrollArea ├── Data │ ├── setting.ui │ └── style.qss ├── Lib │ └── SettingUi.py ├── QQSettingPanel.py ├── README.en.md ├── README.md └── ScreenShot │ └── QQSettingPanel.gif ├── QScrollBar ├── Data │ ├── ScrollBar.qss │ └── scrollbar │ │ ├── scrollbar_arrowdown_down.png │ │ ├── scrollbar_arrowdown_highlight.png │ │ ├── scrollbar_arrowdown_normal.png │ │ ├── scrollbar_arrowleft_down.png │ │ ├── scrollbar_arrowleft_highlight.png │ │ ├── scrollbar_arrowleft_normal.png │ │ ├── scrollbar_arrowright_down.png │ │ ├── scrollbar_arrowright_highlight.png │ │ ├── scrollbar_arrowright_normal.png │ │ ├── scrollbar_arrowup_down.png │ │ ├── scrollbar_arrowup_highlight.png │ │ ├── scrollbar_arrowup_normal.png │ │ ├── scrollbar_bar_highlight.png │ │ ├── scrollbar_bar_normal.png │ │ ├── scrollbar_bkg.png │ │ ├── scrollbar_horzbar_down.png │ │ ├── scrollbar_horzbar_highlight.png │ │ └── scrollbar_horzbar_normal.png ├── README.en.md ├── README.md ├── ScreenShot │ ├── StyleScrollBar1.jpg │ └── StyleScrollBar2.jpg └── StyleScrollBar.py ├── QSerialPort ├── Data │ └── UiSerialPort.ui ├── Lib │ ├── UiSerialPort.py │ └── __init__.py ├── README.en.md ├── README.md ├── ScreenShot │ └── SerialDebugAssistant.gif └── SerialDebugAssistant.py ├── QSlider ├── ClickJumpSlider.py ├── LfSlider.py ├── PaintQSlider.py ├── QssQSlider.py ├── README.en.md ├── README.md └── ScreenShot │ ├── ClickJumpSlider.gif │ ├── LfSlider.gif │ ├── PaintQSlider.gif │ └── QssQSlider.gif ├── QSpacerItem ├── README.en.md └── README.md ├── QSpinBox ├── README.en.md └── README.md ├── QSplashScreen ├── Data │ └── splash.gif ├── GifSplashScreen.py ├── README.en.md ├── README.md └── ScreenShot │ └── GifSplashScreen.gif ├── QSplitter ├── README.en.md ├── README.md ├── RewriteHandle.py └── ScreenShot │ └── RewriteHandle.gif ├── QStackedLayout ├── README.en.md └── README.md ├── QStackedWidget ├── Data │ ├── 01.ico │ ├── 02.ico │ ├── 03.ico │ ├── 04.ico │ ├── 05.ico │ ├── 06.ico │ ├── 07.ico │ └── 08.ico ├── LeftTabStacked.py ├── README.en.md ├── README.md └── ScreenShot │ └── LeftTabStacked.gif ├── QSystemTrayIcon ├── MinimizeToTray.py ├── README.md ├── ScreenShot │ └── MinimizeToTray.gif └── TrayNotify.py ├── QTabWidget ├── README.en.md └── README.md ├── QTableView ├── CopyContent.py ├── README.en.md ├── README.md └── ScreenShot │ ├── CopyContent1.png │ └── CopyContent2.png ├── QTableWidget ├── Data │ ├── data.sqlite3 │ └── mainui.ui ├── Lib │ ├── __init__.py │ └── mainui.py ├── README.en.md ├── README.md ├── ScreenShot │ ├── SqlQuery.png │ └── table.png ├── SqlQuery.py └── TableWidget.py ├── QTextBrowser ├── DynamicRes.py ├── README.en.md ├── README.md └── ScreenShot │ └── DynamicRes.gif ├── QTextEdit ├── HighlightText.py ├── README.en.md ├── README.md └── ScreenShot │ └── HighlightText.gif ├── QThread ├── InheritQThread.py ├── QuitThread.py ├── README.en.md ├── README.md ├── ScreenShot │ ├── InheritQThread.png │ ├── QuitThread.jpg │ ├── SuspendThread.gif │ └── WakeupThread.gif ├── SuspendThread.py ├── WakeupThread.py └── moveToThread.py ├── QTimeEdit ├── README.en.md └── README.md ├── QToolBox ├── README.en.md └── README.md ├── QToolButton ├── README.en.md └── README.md ├── QTreeView ├── README.en.md └── README.md ├── QTreeWidget ├── Data │ ├── data.json │ ├── testTree.ui │ └── weixin.png ├── Lib │ ├── __init__.py │ └── testTree.py ├── ParentNodeForbid.py ├── ParsingJson.py ├── README.en.md ├── README.md ├── ScreenShot │ ├── ParentNodeForbid.gif │ ├── ParsingJson.png │ └── allSelectNode.png ├── __init__.py └── testTreeWidget.py ├── QVBoxLayout ├── Data │ ├── BaseVerticalLayout.ui │ ├── VerticalLayoutMargin.ui │ └── VerticalLayoutStretch.ui ├── README.en.md ├── README.md └── ScreenShot │ ├── BaseVerticalLayout.png │ ├── VerticalLayoutMargin.png │ └── VerticalLayoutStretch.png ├── QWebChannel ├── CallEachWithJs.py ├── Data │ ├── CallEachWithJs.html │ └── qwebchannel.js ├── Lib │ ├── WebChannelObject.py │ └── __init__.py ├── README.en.md ├── README.md └── ScreenShot │ └── CallEachWithJs.gif ├── QWebEngineView ├── BlockRequest.py ├── BlockRequestData.py ├── Data │ ├── JsSignals.html │ ├── app.png │ ├── html2canvas.min.js │ ├── jquery.js │ ├── promise-7.0.4.min.js │ └── qwebchannel.js ├── GetCookie.py ├── GetRequestInfo.py ├── JsSignals.py ├── README.en.md ├── README.md ├── ScreenShot │ ├── BlockRequest.png │ ├── BlockRequestData.png │ ├── GetCookie.png │ ├── JsSignals.gif │ ├── ScreenShotPage.gif │ ├── SetCookies.png │ └── SiteDiffUser.gif ├── ScreenShotPage.py ├── SetCookies.py └── SiteDiffUser.py ├── QWebView ├── BlockRequest.py ├── Data │ ├── JsSignals.html │ ├── NPSWF32.dll │ ├── data.qrc │ ├── html2canvas.min.js │ ├── jquery.js │ ├── promise-7.0.4.min.js │ └── tree.html ├── DreamTree.py ├── GetCookie.py ├── JsSignals.py ├── Lib │ ├── __init__.py │ └── data_rc.py ├── PlayFlash.py ├── README.en.md ├── README.md ├── ScreenShot │ ├── BlockRequest.png │ ├── DreamTree.png │ ├── GetCookie.png │ ├── JsSignals.gif │ ├── PlayFlash.gif │ └── ScreenShotPage.gif └── ScreenShotPage.py ├── QWidget ├── Lib │ ├── CustomPaintWidget.py │ ├── CustomWidget.py │ └── __init__.py ├── README.en.md ├── README.md ├── ScreenShot │ └── WidgetStyle.png ├── WidgetStyle.py └── __init__.py ├── QtChart ├── AreaChart.py ├── BarChart.py ├── BarStack.py ├── ChartThemes.py ├── CpuLineChart.py ├── CustomXYaxis.py ├── DynamicSpline.py ├── HorizontalBarChart.py ├── HorizontalPercentBarChart.py ├── LineChart.py ├── LineStack.py ├── PercentBarChart.py ├── PieChart.py ├── README.en.md ├── README.md ├── ScatterChart.py ├── ScreenShot │ ├── AreaChart.png │ ├── BarChart.png │ ├── BarStack.gif │ ├── ChartThemes.gif │ ├── CpuLineChart.png │ ├── CustomXYaxis.png │ ├── DynamicSplineChart.gif │ ├── HorizontalBarChart.png │ ├── HorizontalPercentBarChart.png │ ├── LineChart.png │ ├── LineStack.gif │ ├── PercentBarChart.png │ ├── PieChart.png │ ├── ScatterChart.png │ ├── SplineChart.png │ ├── ToolTip.gif │ └── ToolTip2.gif ├── SplineChart.py ├── ToolTip.py ├── ToolTip2.py └── requirements.txt ├── QtDataVisualization ├── BarsVisualization.py ├── Data │ └── mesh │ │ ├── largesphere.obj │ │ └── narrowarrow.obj ├── MagneticOfSun.py ├── README.en.md ├── README.md ├── ScatterVisualization.py ├── ScreenShot │ ├── BarsVisualization.gif │ ├── MagneticOfSun.gif │ └── ScatterVisualization.gif └── requirements.txt ├── QtQuick ├── FlatStyle.py ├── FlatStyle │ ├── Flat │ │ ├── Button.qml │ │ ├── CheckBox.qml │ │ └── Switch.qml │ ├── MainForm.ui.qml │ ├── MainForm.ui.qmlc │ ├── flatstyle.qml │ ├── flatstyle.qmlc │ ├── imports │ │ └── Theme │ │ │ ├── Theme.qml │ │ │ ├── Theme.qmlc │ │ │ └── qmldir │ └── qtquickcontrols2.conf ├── README.en.md ├── README.md ├── ScreenShot │ ├── FlatStyle.gif │ └── Signals.gif ├── Signals.py └── __init__.py ├── QtRemoteObjects ├── README.en.md ├── README.md ├── ScreenShot │ └── SyncUi.gif ├── SyncUi │ ├── ClipboardMaster.py │ ├── ClipboardSlave.py │ ├── WindowMaster.py │ └── WindowSlave.py ├── __init__.py ├── modelview │ ├── modelviewclient.py │ └── modelviewserver.py └── simpleswitch │ ├── directconnectdynamicclient.py │ ├── directconnectdynamicserver.py │ ├── registryconnecteddynamicclient.py │ └── registryconnecteddynamicserver.py ├── QtWinExtras ├── README.en.md ├── README.md ├── ScreenShot │ ├── TaskbarProgress.gif │ └── ThumbnailToolBar.gif ├── TaskbarProgress.py └── ThumbnailToolBar.py ├── README.md └── Test ├── ButtomZoom.py ├── C++中修改PyQt对象 ├── Cold.dll ├── Cold │ ├── Cold.pro │ ├── build.bat │ ├── cold.cpp │ └── cold.h ├── Test.py └── src.jpg ├── ChartView ├── ChartView.py ├── ChatWidget.py ├── loading.gif └── 分类 │ ├── 折线图 │ └── 堆叠折线图.json │ └── 柱状图 │ └── 堆叠柱状图.json ├── ColumnView.py ├── C和C++扩展 ├── pydext │ ├── Release │ │ ├── pydext.exp │ │ ├── pydext.iobj │ │ ├── pydext.ipdb │ │ ├── pydext.lib │ │ ├── pydext.pdb │ │ └── pydext.pyd │ ├── pydext.sln │ ├── pydext │ │ ├── Release │ │ │ ├── pydext.obj │ │ │ ├── pydext.tlog │ │ │ │ ├── CL.command.1.tlog │ │ │ │ ├── CL.read.1.tlog │ │ │ │ ├── CL.write.1.tlog │ │ │ │ ├── link.command.1.tlog │ │ │ │ ├── link.read.1.tlog │ │ │ │ ├── link.write.1.tlog │ │ │ │ ├── pydext.lastbuildstate │ │ │ │ └── pydext.write.1u.tlog │ │ │ └── vc141.pdb │ │ ├── build.bat │ │ ├── pydext.c │ │ ├── setup.py │ │ ├── test.py │ │ └── 说明.txt │ ├── test.py │ └── 说明.txt ├── pyx和c++ │ ├── CalSpecSpea.cpp │ ├── CalSpecSpea.pyx │ ├── CalSpecSpeaLib.cpp │ ├── CalSpecSpeaLib.h │ ├── build.bat │ ├── hf_acc.txt │ ├── setup.py │ └── test.py └── py转pyd │ ├── build.bat │ ├── pydmod.c │ ├── pydmod.py │ ├── setup.py │ └── test.py ├── Network ├── README.md ├── 控制小车 │ ├── ScreenShot │ │ └── 控制小车.png │ ├── carui.ui │ ├── server.py │ └── 控制小车.py └── 窗口配合异步Http │ ├── ScreenShot │ └── 窗口配合异步Http.gif │ ├── requirements.txt │ └── 窗口配合异步Http.py ├── ScreenShot └── ButtomZoom.gif ├── WigglyWidget ├── CMakeLists.txt ├── LibWigglyWidget │ ├── CMakeLists.txt │ ├── wigglywidget.cpp │ └── wigglywidget.h ├── PyQtWrapper │ ├── CMakeLists.txt │ ├── TestWigglyWidget.py │ ├── pyproject.toml │ ├── requirements.txt │ └── sip │ │ └── WigglyWidget │ │ ├── WigglyWidget.sip │ │ └── WigglyWidgetmod.sip ├── PySideWrapper │ ├── CMakeLists.txt │ ├── TestWigglyWidget.py │ ├── bindings.h │ ├── bindings.txt.in │ ├── bindings.xml │ ├── generated.bat │ ├── generated.sh │ └── requirements.txt ├── README.md └── TestWigglyWidget │ ├── CMakeLists.txt │ └── main.cpp ├── partner_625781186 ├── 1.exec动态生成控件 │ ├── 1.动态生成.py │ ├── dynamic_Menu │ │ ├── Ui_动态控件.py │ │ ├── __init__.py │ │ ├── dynamic_Controls.e4p │ │ ├── 动态控件.py │ │ └── 动态控件.ui │ ├── dynamic_button │ │ ├── Ui_动态控件.py │ │ ├── __init__.py │ │ ├── dynamic_Controls.e4p │ │ ├── 动态控件.py │ │ └── 动态控件.ui │ └── 动态生成控件.docx ├── 12.1拖拽显示为图片 │ ├── Custom_DND_image.py │ ├── README.md │ ├── ScreenShot │ │ └── 1.gif │ └── if_Cursor_drag_arrow_103039.png ├── 13.combo_listwidget │ ├── README.md │ ├── ScreenShot │ │ └── 1.gif │ ├── combo_listwidget.py │ └── myRes_rc.py ├── 14.多进程爬虫 │ ├── README.md │ ├── ScreenShot │ │ └── 1.gif │ ├── __init__.py │ ├── icons │ │ ├── add_page.png │ │ ├── back.png │ │ ├── clipboard.png │ │ ├── cross.png │ │ ├── lock.png │ │ ├── next.png │ │ ├── penguin.png │ │ ├── question.png │ │ ├── renew.png │ │ └── save.png │ └── 多进程爬虫.py ├── 15_Plugins │ ├── PluginManager │ │ ├── PluginManager.py │ │ ├── PluginStore │ │ │ ├── PluginStore.py │ │ │ ├── PluginStore.ui │ │ │ ├── StoreModel.py │ │ │ └── Ui_PluginStore.py │ │ ├── __init__.py │ │ └── plugin.json │ ├── Plugins.e4p │ ├── Plugins │ │ ├── PluginPage0_inMainLayout.py │ │ ├── __init__.py │ │ ├── page1 │ │ │ ├── PluginPage1.ui │ │ │ ├── Ui_PluginPage1.py │ │ │ └── __init__.py │ │ └── page2 │ │ │ ├── PluginPage2.ui │ │ │ ├── Ui_PluginPage2.py │ │ │ └── __init__.py │ ├── Tools │ │ ├── __init__.py │ │ └── pmf_myjson.py │ ├── Ui_main.py │ ├── __init__.py │ ├── main.py │ └── main.ui ├── 16_sqlModel │ └── 01_mapper │ │ ├── MainWindow.py │ │ ├── README.md │ │ ├── ScreenShot │ │ └── 1.gif │ │ ├── __init__.py │ │ ├── db │ │ └── database.db │ │ └── ui │ │ ├── MainWindow.ui │ │ └── Ui_MainWindow.py ├── 17_打印预览qwebengineview │ ├── README.md │ ├── ScreenShot │ │ └── 1.jpg │ ├── bootstrap.min.css │ ├── main.py │ └── 报警记录2019-04-12 16-52-53.html ├── 2.折叠控件 │ ├── ScreenShot │ │ └── 2.gif │ ├── readme.md │ └── 收缩伸展控件.py ├── 3.机制讲解 │ └── 3.1 自定义事件 │ │ └── 3.1.1 原理 │ │ └── myEvent.py ├── 5.hoverMenu │ ├── Documentation │ │ ├── 5.hoverMenu.Main.md │ │ ├── 5.hoverMenu.Tools.CommonHelper.md │ │ ├── 5.hoverMenu.Tools.qmf_showError.md │ │ ├── 5.hoverMenu.U_FuncWidget.BaseElement.md │ │ ├── 5.hoverMenu.U_FuncWidget.Menu.md │ │ ├── 5.hoverMenu.U_FuncWidget.UCompetitiveProduct2.SKU_Widget.md │ │ ├── 5.hoverMenu.U_FuncWidget.UThroughTrain4.GeographicAnalysis_Widget.md │ │ ├── README-5.hoverMenu.Tools.md │ │ ├── README-5.hoverMenu.U_FuncWidget.UCompetitiveProduct2.md │ │ ├── README-5.hoverMenu.U_FuncWidget.UMarketAnalysis3.md │ │ ├── README-5.hoverMenu.U_FuncWidget.UStoreData1.md │ │ ├── README-5.hoverMenu.U_FuncWidget.UThroughTrain4.md │ │ ├── README-5.hoverMenu.U_FuncWidget.md │ │ ├── README-5.hoverMenu.md │ │ └── README.md │ ├── Main.py │ ├── Main.ui │ ├── ScreenShot │ │ └── 2.gif │ ├── Tools │ │ ├── CommonHelper.py │ │ ├── Ui_Main.py │ │ ├── __init__.py │ │ ├── qmf_showError.py │ │ └── style.css │ ├── U_FuncWidget │ │ ├── BaseElement.py │ │ ├── Menu.py │ │ ├── UCompetitiveProduct2 │ │ │ ├── SKU_Widget.py │ │ │ ├── SKU_Widget.ui │ │ │ ├── Ui_SKU_Widget.py │ │ │ └── __init__.py │ │ ├── UMarketAnalysis3 │ │ │ └── __init__.py │ │ ├── UStoreData1 │ │ │ └── __init__.py │ │ ├── UThroughTrain4 │ │ │ ├── GeographicAnalysis_Widget.py │ │ │ ├── GeographicAnalysis_Widget.ui │ │ │ ├── Ui_GeographicAnalysis_Widget.py │ │ │ └── __init__.py │ │ └── __init__.py │ ├── Ui_Main.py │ ├── __init__.py │ ├── hoverMenu.e4p │ ├── readme.md │ ├── static │ │ ├── background.jpg │ │ ├── competitiveProductAnalysis.png │ │ ├── download.jpg │ │ ├── drillTools.png │ │ ├── exit.png │ │ ├── finance.png │ │ ├── icon.ico │ │ ├── information.png │ │ ├── login.jpg │ │ ├── marketAnalysis.png │ │ ├── microAmoy.png │ │ ├── password.png │ │ ├── register.jpg │ │ ├── search.png │ │ ├── store_data.png │ │ ├── taobaoLogin.png │ │ ├── taobaoLogin_title.png │ │ ├── throughTrain.png │ │ └── username_headers.png │ ├── tbqrc.qrc │ └── tbqrc_rc.py ├── 6.QWebEngineView下载文件 │ ├── ScreenShot │ │ └── 1.png │ ├── browser.py │ └── readme.md └── QML_QtQuick_PY │ ├── QDialog中嵌入qml窗体并缩放 │ ├── ScreenShot │ │ └── 2.gif │ ├── Ui_py_qml.py │ ├── _eric6project │ │ ├── py_qml.e4q │ │ └── py_qml.e6t │ ├── py_mqltest.qml │ ├── py_mqltest.qmlc │ ├── py_qml.e4p │ ├── py_qml.py │ ├── py_qml.ui │ └── readme.md │ ├── QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上 │ ├── ScreenShot │ │ └── 2.gif │ ├── Ui_py_qml.py │ ├── __init__.py │ ├── doc │ │ ├── images │ │ │ ├── qtquickcontrols2-gallery-drawer.png │ │ │ ├── qtquickcontrols2-gallery-menu.png │ │ │ └── qtquickcontrols2-gallery-welcome.png │ │ └── src │ │ │ └── qtquickcontrols2-gallery.qdoc │ ├── images │ │ ├── +material │ │ │ ├── back.png │ │ │ ├── back@2x.png │ │ │ ├── back@3x.png │ │ │ ├── back@4x.png │ │ │ ├── drawer.png │ │ │ ├── drawer@2x.png │ │ │ ├── drawer@3x.png │ │ │ ├── drawer@4x.png │ │ │ ├── menu.png │ │ │ ├── menu@2x.png │ │ │ ├── menu@3x.png │ │ │ └── menu@4x.png │ │ ├── arrow.png │ │ ├── arrow@2x.png │ │ ├── arrow@3x.png │ │ ├── arrow@4x.png │ │ ├── arrows.png │ │ ├── arrows@2x.png │ │ ├── arrows@3x.png │ │ ├── arrows@4x.png │ │ ├── back.png │ │ ├── back@2x.png │ │ ├── back@3x.png │ │ ├── back@4x.png │ │ ├── drawer.png │ │ ├── drawer@2x.png │ │ ├── drawer@3x.png │ │ ├── drawer@4x.png │ │ ├── menu.png │ │ ├── menu@2x.png │ │ ├── menu@3x.png │ │ ├── menu@4x.png │ │ ├── qt-logo.png │ │ ├── qt-logo@2x.png │ │ ├── qt-logo@3x.png │ │ └── qt-logo@4x.png │ ├── pages │ │ ├── BusyIndicatorPage.qml │ │ ├── BusyIndicatorPage.qmlc │ │ ├── ButtonPage.qml │ │ ├── ButtonPage.qmlc │ │ ├── CheckBoxPage.qml │ │ ├── ComboBoxPage.qml │ │ ├── DelayButtonPage.qml │ │ ├── DelegatePage.qml │ │ ├── DialPage.qml │ │ ├── DialPage.qmlc │ │ ├── DialogPage.qml │ │ ├── FramePage.qml │ │ ├── GroupBoxPage.qml │ │ ├── PageIndicatorPage.qml │ │ ├── ProgressBarPage.qml │ │ ├── RadioButtonPage.qml │ │ ├── RangeSliderPage.qml │ │ ├── ScrollBarPage.qml │ │ ├── ScrollIndicatorPage.qml │ │ ├── ScrollIndicatorPage.qmlc │ │ ├── ScrollablePage.qml │ │ ├── ScrollablePage.qmlc │ │ ├── SliderPage.qml │ │ ├── SliderPage.qmlc │ │ ├── SpinBoxPage.qml │ │ ├── StackViewPage.qml │ │ ├── StackViewPage.qmlc │ │ ├── SwipeViewPage.qml │ │ ├── SwitchPage.qml │ │ ├── SwitchPage.qmlc │ │ ├── TabBarPage.qml │ │ ├── TextAreaPage.qml │ │ ├── TextAreaPage.qmlc │ │ ├── TextFieldPage.qml │ │ ├── ToolTipPage.qml │ │ ├── TumblerPage.qml │ │ └── TumblerPage.qmlc │ ├── py_mqltest.qml │ ├── py_mqltest.qmlc │ ├── py_mqltest1.qml │ ├── py_qml.e4p │ ├── py_qml.py │ └── readme.md │ └── python_QML调用基础 │ ├── 0-参考教程.txt │ ├── 1-QML显式的调用Python函数,无返回值 │ ├── 1.jpg │ ├── qml-test.py │ ├── test.qml │ └── test.qmlc │ ├── 2-QML显式的调用Python函数,有返回值 │ ├── 2.jpg │ ├── qml-test2.py │ ├── test2.qml │ └── test2.qmlc │ ├── 3-QML连接信号到Python │ ├── 3.jpg │ ├── qml-test3.py │ ├── test3.qml │ └── test3.qmlc │ ├── 4-Python调用QML函数 │ ├── qml-test4.py │ ├── test4.qml │ └── test4.qmlc │ └── 5-信号、槽 机制 │ ├── qml-test5.py │ ├── test5.qml │ └── test5.qmlc ├── 全局热键 ├── HotKey.py ├── README.md ├── ScreenShot │ └── 1.gif └── requirements.txt ├── 自动更新 ├── README.md ├── mylibs │ ├── __init__.py │ └── testlibs.py ├── setup.py ├── test.py └── 编译.bat └── 自定义import ├── IronyImporter.py ├── README.md ├── ScreenShot ├── 1.png ├── 2.png └── 3.png ├── build.py ├── main.py ├── src └── test.py ├── test.irony └── xxtea.pyd /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | liberapay: Irony 4 | custom: 5 | - https://github.com/PyQt5/PyQt#donate-打赏 6 | - https://github.com/PyQt5/PyQt/blob/master/Donate/zhifubao.png 7 | - https://github.com/PyQt5/PyQt/blob/master/Donate/weixin.png 8 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/discussion---.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Discussion/讨论 3 | about: 一些反复被提及的问题. 4 | title: "[讨论]" 5 | labels: 归纳 6 | assignees: '' 7 | 8 | --- 9 | 10 | 11 | -------------------------------------------------------------------------------- /.github/workflows/mirror.yml: -------------------------------------------------------------------------------- 1 | name: 'GitHub Actions Mirror' 2 | 3 | on: [push, delete] 4 | 5 | jobs: 6 | mirror_to_gitee: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - uses: actions/checkout@v1 10 | - uses: pixta-dev/repository-mirroring-action@v1 11 | with: 12 | target_repo_url: 13 | git@gitee.com:PyQt5/PyQt.git 14 | ssh_private_key: 15 | ${{ secrets.GIT_KEY }} 16 | -------------------------------------------------------------------------------- /Demo/Data/AutoRestart.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/Data/AutoRestart.exe -------------------------------------------------------------------------------- /Demo/Data/Images/Cursors/0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/Data/Images/Cursors/0.png -------------------------------------------------------------------------------- /Demo/Data/Images/Cursors/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/Data/Images/Cursors/1.png -------------------------------------------------------------------------------- /Demo/Data/Images/Cursors/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/Data/Images/Cursors/2.png -------------------------------------------------------------------------------- /Demo/Data/Images/Cursors/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/Data/Images/Cursors/3.png -------------------------------------------------------------------------------- /Demo/Data/Images/Cursors/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/Data/Images/Cursors/4.png -------------------------------------------------------------------------------- /Demo/Data/Images/Cursors/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/Data/Images/Cursors/5.png -------------------------------------------------------------------------------- /Demo/Data/Images/Cursors/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/Data/Images/Cursors/6.png -------------------------------------------------------------------------------- /Demo/Data/Images/Cursors/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/Data/Images/Cursors/7.png -------------------------------------------------------------------------------- /Demo/Data/Qt.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/Data/Qt.ico -------------------------------------------------------------------------------- /Demo/Data/ScreenShot.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/Data/ScreenShot.dll -------------------------------------------------------------------------------- /Demo/Data/dlib-19.4.0.win32-py2.7.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/Data/dlib-19.4.0.win32-py2.7.exe -------------------------------------------------------------------------------- /Demo/Data/dlib-19.4.0.win32-py3.4.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/Data/dlib-19.4.0.win32-py3.4.exe -------------------------------------------------------------------------------- /Demo/Data/dlib-19.4.0.win32-py3.5.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/Data/dlib-19.4.0.win32-py3.5.exe -------------------------------------------------------------------------------- /Demo/Data/itckrist.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/Data/itckrist.ttf -------------------------------------------------------------------------------- /Demo/Lib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/Lib/__init__.py -------------------------------------------------------------------------------- /Demo/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/README.en.md -------------------------------------------------------------------------------- /Demo/ScreenShot/AutoRestart.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/AutoRestart.gif -------------------------------------------------------------------------------- /Demo/ScreenShot/BubbleTips.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/BubbleTips.gif -------------------------------------------------------------------------------- /Demo/ScreenShot/CallVirtualKeyboard1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/CallVirtualKeyboard1.png -------------------------------------------------------------------------------- /Demo/ScreenShot/CallVirtualKeyboard2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/CallVirtualKeyboard2.png -------------------------------------------------------------------------------- /Demo/ScreenShot/CircleLine.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/CircleLine.gif -------------------------------------------------------------------------------- /Demo/ScreenShot/CustomProperties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/CustomProperties.png -------------------------------------------------------------------------------- /Demo/ScreenShot/EmbedWindow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/EmbedWindow.gif -------------------------------------------------------------------------------- /Demo/ScreenShot/FacePoints.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/FacePoints.png -------------------------------------------------------------------------------- /Demo/ScreenShot/FollowWindow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/FollowWindow.gif -------------------------------------------------------------------------------- /Demo/ScreenShot/FramelessDialog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/FramelessDialog.png -------------------------------------------------------------------------------- /Demo/ScreenShot/FramelessDialog1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/FramelessDialog1.png -------------------------------------------------------------------------------- /Demo/ScreenShot/FramelessWindow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/FramelessWindow.gif -------------------------------------------------------------------------------- /Demo/ScreenShot/GifCursor.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/GifCursor.gif -------------------------------------------------------------------------------- /Demo/ScreenShot/IsSignalConnected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/IsSignalConnected.png -------------------------------------------------------------------------------- /Demo/ScreenShot/NewFramelessWindow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/NewFramelessWindow.gif -------------------------------------------------------------------------------- /Demo/ScreenShot/Notification.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/Notification.gif -------------------------------------------------------------------------------- /Demo/ScreenShot/ProbeWindow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/ProbeWindow.gif -------------------------------------------------------------------------------- /Demo/ScreenShot/QtThreading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/QtThreading.gif -------------------------------------------------------------------------------- /Demo/ScreenShot/RestartWindow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/RestartWindow.gif -------------------------------------------------------------------------------- /Demo/ScreenShot/ScreenNotify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/ScreenNotify.png -------------------------------------------------------------------------------- /Demo/ScreenShot/ScreenShotDll.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/ScreenShotDll.gif -------------------------------------------------------------------------------- /Demo/ScreenShot/ShowFrameWhenDrag.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/ShowFrameWhenDrag.gif -------------------------------------------------------------------------------- /Demo/ScreenShot/VerificationCode.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/VerificationCode.gif -------------------------------------------------------------------------------- /Demo/ScreenShot/WeltHideWindow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/WeltHideWindow.gif -------------------------------------------------------------------------------- /Demo/ScreenShot/WindowNotify.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Demo/ScreenShot/WindowNotify.gif -------------------------------------------------------------------------------- /Demo/ScreenShotDll.py: -------------------------------------------------------------------------------- 1 | from ctypes import CDLL 2 | 3 | dll = CDLL('Data/ScreenShot.dll') 4 | dll.PrScrn() 5 | -------------------------------------------------------------------------------- /Demo/requirements.txt: -------------------------------------------------------------------------------- 1 | pywin32 2 | numpy 3 | dlib 4 | -------------------------------------------------------------------------------- /Donate/PyQt_Group.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Donate/PyQt_Group.png -------------------------------------------------------------------------------- /Donate/PyQt_Guild.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Donate/PyQt_Guild.png -------------------------------------------------------------------------------- /Donate/weixin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Donate/weixin.png -------------------------------------------------------------------------------- /Donate/weixin2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Donate/weixin2.png -------------------------------------------------------------------------------- /Donate/wxblog.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Donate/wxblog.jpg -------------------------------------------------------------------------------- /Donate/zhifubao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Donate/zhifubao.png -------------------------------------------------------------------------------- /PyQtGraph/Data/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # encoding: utf-8 3 | """ 4 | @author: wxj 5 | @license: (C) Hefei tongzhi electromechanical control technology co.LTD 6 | @contact: 7 | @software: garner 8 | @file: __init__.py.py 9 | @time: 2019/5/21 18:07 10 | @desc: 11 | """ 12 | -------------------------------------------------------------------------------- /PyQtGraph/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/PyQtGraph/README.en.md -------------------------------------------------------------------------------- /PyQtGraph/ScreenShot/GraphAnalysis.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/PyQtGraph/ScreenShot/GraphAnalysis.gif -------------------------------------------------------------------------------- /PyQtGraph/ScreenShot/function.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/PyQtGraph/ScreenShot/function.gif -------------------------------------------------------------------------------- /PyQtGraph/ScreenShot/mouseFlow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/PyQtGraph/ScreenShot/mouseFlow.gif -------------------------------------------------------------------------------- /PyQtGraph/requirements.txt: -------------------------------------------------------------------------------- 1 | pyqtgraph 2 | -------------------------------------------------------------------------------- /QAxWidget/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QAxWidget/README.en.md -------------------------------------------------------------------------------- /QAxWidget/README.md: -------------------------------------------------------------------------------- 1 | # QAxWidget 2 | 3 | - 目录 4 | - [显示Word、Excel、PDF文件](#1显示WordExcelPDF文件) 5 | 6 | ## 1、显示Word、Excel、PDF文件 7 | [运行 ViewOffice.py](ViewOffice.py) 8 | 9 | 1. 利用 `Word.Application` 打开Word文件 10 | 1. 利用 `Excel.Application` 打开Excel文件 11 | 1. 利用 `Adobe PDF Reader` 打开PDF文件(前提先装PDF软件) 12 | 13 | ![ViewOffice](ScreenShot/ViewOffice.png) -------------------------------------------------------------------------------- /QAxWidget/ScreenShot/ViewOffice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QAxWidget/ScreenShot/ViewOffice.png -------------------------------------------------------------------------------- /QCalendarWidget/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QCalendarWidget/README.en.md -------------------------------------------------------------------------------- /QCalendarWidget/README.md: -------------------------------------------------------------------------------- 1 | # QCalendarWidget 2 | 3 | - 目录 4 | - [QSS美化日历样式](#1QSS美化日历样式) 5 | 6 | ## 1、QSS美化日历样式 7 | [运行 CalendarQssStyle.py](CalendarQssStyle.py) 8 | 9 | 对日历控件的部分控件进行QSS美化,顶部背景颜色和高度,上下月按钮、月份选择、年选择、菜单 10 | 11 | ![CalendarQssStyle](ScreenShot/CalendarQssStyle.gif) -------------------------------------------------------------------------------- /QCalendarWidget/ScreenShot/CalendarQssStyle.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QCalendarWidget/ScreenShot/CalendarQssStyle.gif -------------------------------------------------------------------------------- /QCheckBox/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QCheckBox/README.en.md -------------------------------------------------------------------------------- /QCheckBox/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QCheckBox/README.md -------------------------------------------------------------------------------- /QColumnView/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QColumnView/README.en.md -------------------------------------------------------------------------------- /QColumnView/README.md: -------------------------------------------------------------------------------- 1 | # QColumnView 2 | 3 | - 目录 4 | - [文件系统浏览器](#1文件系统浏览器) 5 | 6 | ## 1、文件系统浏览器 7 | 8 | [运行 FileManager.py](FileManager.py) 9 | 10 | 一个省市区关联的三级联动,数据源在data.json中 11 | 12 | 1. 通过`QFileSystemModel`模型来显示文件系统 13 | 2. 结合`QColumnView`的`setMode`函数显示文件系统模型 14 | 3. 通过`QFileSystemModel.filePath(QColumnView.currentIndex())`获取当前选中的路径 15 | 16 | ![FileManager](ScreenShot/FileManager.png) 17 | -------------------------------------------------------------------------------- /QColumnView/ScreenShot/FileManager.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QColumnView/ScreenShot/FileManager.png -------------------------------------------------------------------------------- /QComboBox/Lib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QComboBox/Lib/__init__.py -------------------------------------------------------------------------------- /QComboBox/README.en.md: -------------------------------------------------------------------------------- 1 | # QComboBox 2 | 3 | - Catalog 4 | - [Data Linkage](#1data-linkage) 5 | 6 | ## 1、Data Linkage 7 | [Run CityLinkage.py](CityLinkage.py) 8 | 9 | Three level linkage, data file is data.json 10 | 11 | 1. use `QComboBox`,`setModel` and `QSortFilterProxyModel` to filter 12 | 2. the filter role is `Qt::ToolTipRole` 13 | 3. can use `QColumnView` maybe like this example 14 | 15 | ![CityLinkage](ScreenShot/CityLinkage.gif) -------------------------------------------------------------------------------- /QComboBox/README.md: -------------------------------------------------------------------------------- 1 | # QComboBox 2 | 3 | - 目录 4 | - [下拉数据关联](#1下拉数据关联) 5 | - [文本居中显示](#2文本居中显示) 6 | 7 | ## 1、下拉数据关联 8 | 9 | [运行 CityLinkage.py](CityLinkage.py) 10 | 11 | 一个省市区关联的三级联动,数据源在data.json中 12 | 13 | 1. 主要用了`QComboBox`的`setModel`设置一个`QSortFilterProxyModel`过滤模型 14 | 2. 并根据唯一编码过滤,为了不影响内容显示,唯一编码的角色为`ToolTipRole` 15 | 3. 用`QColumnView`可以实现类似效果 16 | 17 | ![CityLinkage](ScreenShot/CityLinkage.gif) 18 | 19 | ## 2、文本居中显示 20 | 21 | [运行 CenterText.py](CenterText.py) 22 | 23 | 1. 使用`QProxyStyle`对文件居中显示 24 | 2. 新增得item数据使用`setTextAlignment`对齐 25 | 26 | ![CenterText](ScreenShot/CenterText.png) -------------------------------------------------------------------------------- /QComboBox/ScreenShot/CenterText.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QComboBox/ScreenShot/CenterText.png -------------------------------------------------------------------------------- /QComboBox/ScreenShot/CityLinkage.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QComboBox/ScreenShot/CityLinkage.gif -------------------------------------------------------------------------------- /QDateTime/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QDateTime/README.en.md -------------------------------------------------------------------------------- /QDateTime/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QDateTime/README.md -------------------------------------------------------------------------------- /QDateTimeEdit/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QDateTimeEdit/README.en.md -------------------------------------------------------------------------------- /QDateTimeEdit/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QDateTimeEdit/README.md -------------------------------------------------------------------------------- /QDial/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QDial/README.en.md -------------------------------------------------------------------------------- /QDial/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QDial/README.md -------------------------------------------------------------------------------- /QDockWidget/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QDockWidget/README.en.md -------------------------------------------------------------------------------- /QDockWidget/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QDockWidget/README.md -------------------------------------------------------------------------------- /QDoubleSpinBox/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QDoubleSpinBox/README.en.md -------------------------------------------------------------------------------- /QDoubleSpinBox/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QDoubleSpinBox/README.md -------------------------------------------------------------------------------- /QFileSystemModel/Data/icons/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QFileSystemModel/Data/icons/file.png -------------------------------------------------------------------------------- /QFileSystemModel/Data/icons/folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QFileSystemModel/Data/icons/folder.png -------------------------------------------------------------------------------- /QFileSystemModel/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QFileSystemModel/README.en.md -------------------------------------------------------------------------------- /QFileSystemModel/README.md: -------------------------------------------------------------------------------- 1 | # QFileSystemModel 2 | 3 | - 目录 4 | - [自定义图标](#1自定义图标) 5 | 6 | ## 1、自定义图标 7 | [运行 CustomIcon.py](CustomIcon.py) 8 | 9 | 1. 继承 `QFileIconProvider` 类实现自己的图标提供器 10 | 2. 重写 `def icon(self, type_info)` 方法根据文件类型返回对应的图标 11 | 12 | ![CustomIcon](ScreenShot/CustomIcon.png) -------------------------------------------------------------------------------- /QFileSystemModel/ScreenShot/CustomIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QFileSystemModel/ScreenShot/CustomIcon.png -------------------------------------------------------------------------------- /QFlowLayout/Data/Svg_icon_play_sm.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /QFlowLayout/Data/pic_v.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QFlowLayout/Data/pic_v.png -------------------------------------------------------------------------------- /QFlowLayout/Lib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QFlowLayout/Lib/__init__.py -------------------------------------------------------------------------------- /QFlowLayout/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QFlowLayout/README.en.md -------------------------------------------------------------------------------- /QFlowLayout/README.md: -------------------------------------------------------------------------------- 1 | # QListView 2 | 3 | - 目录 4 | - [音乐热歌列表](#1音乐热歌列表) 5 | 6 | ## 1、音乐热歌列表 7 | [运行 HotPlaylist.py](HotPlaylist.py) 8 | 9 | 简单思路说明: 10 | 11 | - 利用`QScrollArea`滚动显示,自定义的`QFlowLayout`做布局来放置自定义的Widget 12 | - `QNetworkAccessManager`异步下载网页和图片 13 | - `QScrollArea`滚动到底部触发下一页加载 14 | 15 | 自定义控件说明: 16 | 17 | - 主要是多个layout和控件的结合,其中图片`QLabel`为自定义,通过`setPixmap`设置图片,重写`paintEvent`绘制底部渐变矩形框和白色文字 18 | - 字体颜色用qss设置 19 | - 图标利用了`QSvgWidget`显示,可以是svg 动画(如圆形加载图) 20 | 21 | ![HotPlaylist](ScreenShot/HotPlaylist.gif) -------------------------------------------------------------------------------- /QFlowLayout/ScreenShot/HotPlaylist.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QFlowLayout/ScreenShot/HotPlaylist.gif -------------------------------------------------------------------------------- /QFlowLayout/requirements.txt: -------------------------------------------------------------------------------- 1 | lxml 2 | -------------------------------------------------------------------------------- /QFont/Data/Fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QFont/Data/Fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /QFont/Lib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QFont/Lib/__init__.py -------------------------------------------------------------------------------- /QFont/README.md: -------------------------------------------------------------------------------- 1 | # QFont 2 | 3 | - 目录 4 | - [加载自定义字体](#1加载自定义字体) 5 | 6 | ## 1、加载自定义字体 7 | [运行 AwesomeFont.py](AwesomeFont.py) 8 | 9 | 通过`QFontDatabase.addApplicationFont`加载字体文件 10 | 11 | ![AwesomeFont](ScreenShot/AwesomeFont.png) -------------------------------------------------------------------------------- /QFont/ScreenShot/AwesomeFont.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QFont/ScreenShot/AwesomeFont.png -------------------------------------------------------------------------------- /QFontComboBox/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QFontComboBox/README.en.md -------------------------------------------------------------------------------- /QFontComboBox/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QFontComboBox/README.md -------------------------------------------------------------------------------- /QFormLayout/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QFormLayout/README.en.md -------------------------------------------------------------------------------- /QFormLayout/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QFormLayout/README.md -------------------------------------------------------------------------------- /QFrame/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QFrame/README.en.md -------------------------------------------------------------------------------- /QFrame/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QFrame/README.md -------------------------------------------------------------------------------- /QGraphicsDropShadowEffect/Data/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGraphicsDropShadowEffect/Data/1.jpg -------------------------------------------------------------------------------- /QGraphicsDropShadowEffect/Lib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGraphicsDropShadowEffect/Lib/__init__.py -------------------------------------------------------------------------------- /QGraphicsDropShadowEffect/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGraphicsDropShadowEffect/README.en.md -------------------------------------------------------------------------------- /QGraphicsDropShadowEffect/README.md: -------------------------------------------------------------------------------- 1 | # QGraphicsDropShadowEffect 2 | 3 | - 目录 4 | - [边框阴影动画](#1边框阴影动画) 5 | 6 | ## 1、边框阴影动画 7 | [运行 ShadowEffect.py](ShadowEffect.py) 8 | 9 | 1. 通过`setGraphicsEffect`设置控件的边框阴影 10 | 2. 继承`QGraphicsDropShadowEffect`实现增加动态属性`radius` 11 | 3. 通过`QPropertyAnimation`属性动画不断改变`radius`的值并调用`setBlurRadius`更新半径值 12 | 4. 不能对父控件使用 13 | 14 | ![ShadowEffect](ScreenShot/ShadowEffect.gif) -------------------------------------------------------------------------------- /QGraphicsDropShadowEffect/ScreenShot/ShadowEffect.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGraphicsDropShadowEffect/ScreenShot/ShadowEffect.gif -------------------------------------------------------------------------------- /QGraphicsView/Data/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGraphicsView/Data/bg.jpg -------------------------------------------------------------------------------- /QGraphicsView/Data/icons/basic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGraphicsView/Data/icons/basic.png -------------------------------------------------------------------------------- /QGraphicsView/Data/icons/business.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGraphicsView/Data/icons/business.png -------------------------------------------------------------------------------- /QGraphicsView/Data/icons/cloudService.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGraphicsView/Data/icons/cloudService.png -------------------------------------------------------------------------------- /QGraphicsView/Data/icons/dataBase.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGraphicsView/Data/icons/dataBase.png -------------------------------------------------------------------------------- /QGraphicsView/Data/icons/engineering.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGraphicsView/Data/icons/engineering.png -------------------------------------------------------------------------------- /QGraphicsView/Data/icons/network.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGraphicsView/Data/icons/network.png -------------------------------------------------------------------------------- /QGraphicsView/Data/icons/science.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGraphicsView/Data/icons/science.png -------------------------------------------------------------------------------- /QGraphicsView/Data/icons/softwareEngineering.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGraphicsView/Data/icons/softwareEngineering.png -------------------------------------------------------------------------------- /QGraphicsView/Data/icons/wireframe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGraphicsView/Data/icons/wireframe.png -------------------------------------------------------------------------------- /QGraphicsView/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGraphicsView/README.en.md -------------------------------------------------------------------------------- /QGraphicsView/ScreenShot/AddQWidget.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGraphicsView/ScreenShot/AddQWidget.png -------------------------------------------------------------------------------- /QGraphicsView/ScreenShot/DragGraphics.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGraphicsView/ScreenShot/DragGraphics.gif -------------------------------------------------------------------------------- /QGraphicsView/ScreenShot/ImageView.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGraphicsView/ScreenShot/ImageView.gif -------------------------------------------------------------------------------- /QGraphicsView/ScreenShot/WorldMap.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGraphicsView/ScreenShot/WorldMap.gif -------------------------------------------------------------------------------- /QGridLayout/Data/Svg_icon_play_sm.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /QGridLayout/Data/pic_v.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGridLayout/Data/pic_v.png -------------------------------------------------------------------------------- /QGridLayout/Lib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGridLayout/Lib/__init__.py -------------------------------------------------------------------------------- /QGridLayout/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGridLayout/README.en.md -------------------------------------------------------------------------------- /QGridLayout/README.md: -------------------------------------------------------------------------------- 1 | # QListView 2 | 3 | - 目录 4 | - [音乐热歌列表](#1音乐热歌列表) 5 | 6 | ## 1、音乐热歌列表 7 | [运行 HotPlaylist.py](HotPlaylist.py) 8 | 9 | 简单思路说明: 10 | 11 | - 利用`QScrollArea`滚动显示,`QGridLayout`做布局来放置自定义的Widget 12 | - `QNetworkAccessManager`异步下载网页和图片 13 | - `QScrollArea`滚动到底部触发下一页加载 14 | 15 | 自定义控件说明: 16 | 17 | - 主要是多个layout和控件的结合,其中图片`QLabel`为自定义,通过`setPixmap`设置图片,重写`paintEvent`绘制底部渐变矩形框和白色文字 18 | - 字体颜色用qss设置 19 | - 图标利用了`QSvgWidget`显示,可以是svg 动画(如圆形加载图) 20 | 21 | ![HotPlaylist](ScreenShot/HotPlaylist.gif) -------------------------------------------------------------------------------- /QGridLayout/ScreenShot/HotPlaylist.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGridLayout/ScreenShot/HotPlaylist.gif -------------------------------------------------------------------------------- /QGroupBox/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGroupBox/README.en.md -------------------------------------------------------------------------------- /QGroupBox/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QGroupBox/README.md -------------------------------------------------------------------------------- /QHBoxLayout/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QHBoxLayout/README.en.md -------------------------------------------------------------------------------- /QHBoxLayout/ScreenShot/BaseHorizontalLayout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QHBoxLayout/ScreenShot/BaseHorizontalLayout.png -------------------------------------------------------------------------------- /QHBoxLayout/ScreenShot/HorizontalLayoutMargin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QHBoxLayout/ScreenShot/HorizontalLayoutMargin.png -------------------------------------------------------------------------------- /QHBoxLayout/ScreenShot/HorizontalLayoutStretch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QHBoxLayout/ScreenShot/HorizontalLayoutStretch.png -------------------------------------------------------------------------------- /QLCDNumber/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLCDNumber/README.en.md -------------------------------------------------------------------------------- /QLCDNumber/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLCDNumber/README.md -------------------------------------------------------------------------------- /QLabel/Data/Images/head.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/Data/Images/head.jpg -------------------------------------------------------------------------------- /QLabel/Data/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/Data/bg.png -------------------------------------------------------------------------------- /QLabel/Data/bg1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/Data/bg1.jpg -------------------------------------------------------------------------------- /QLabel/Data/fg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/Data/fg.png -------------------------------------------------------------------------------- /QLabel/Data/fg1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/Data/fg1.png -------------------------------------------------------------------------------- /QLabel/Data/head.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/Data/head.jpg -------------------------------------------------------------------------------- /QLabel/Data/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/Data/loading.gif -------------------------------------------------------------------------------- /QLabel/Data/res.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/head.jpg 4 | 5 | 6 | -------------------------------------------------------------------------------- /QLabel/Data/res.rcc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/Data/res.rcc -------------------------------------------------------------------------------- /QLabel/Data/res2.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/head.jpg 4 | 5 | 6 | -------------------------------------------------------------------------------- /QLabel/Data/skin_aio_friend_bubble_pressed.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/Data/skin_aio_friend_bubble_pressed.9.png -------------------------------------------------------------------------------- /QLabel/Lib/QtNinePatch/QtNinePatch.h: -------------------------------------------------------------------------------- 1 | #ifndef QTNINEPATCH_H 2 | #define QTNINEPATCH_H 3 | 4 | #include 5 | 6 | #if defined(QTNINEPATCHLIB_LIBRARY) 7 | # define QTNINEPATCHLIBSHARED_EXPORT Q_DECL_EXPORT 8 | #else 9 | # define QTNINEPATCHLIBSHARED_EXPORT Q_DECL_IMPORT 10 | #endif 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | 17 | class QtNinePatch; 18 | 19 | class QTNINEPATCHLIBSHARED_EXPORT QtNinePatch 20 | { 21 | 22 | public: 23 | static QPixmap createPixmapFromNinePatchImage(const QImage &, int, int); 24 | }; 25 | 26 | #endif // QTNINEPATCH_H 27 | -------------------------------------------------------------------------------- /QLabel/Lib/QtNinePatch/sip/QtNinePatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/Lib/QtNinePatch/sip/QtNinePatch.dll -------------------------------------------------------------------------------- /QLabel/Lib/QtNinePatch/sip/QtNinePatch.pyd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/Lib/QtNinePatch/sip/QtNinePatch.pyd -------------------------------------------------------------------------------- /QLabel/Lib/QtNinePatch/sip/QtNinePatch.sip: -------------------------------------------------------------------------------- 1 | %Module QtNinePatch 2 | %Import QtCore/QtCoremod.sip 3 | %Import QtGui/QtGuimod.sip 4 | 5 | class QtNinePatch 6 | { 7 | %TypeHeaderCode 8 | #include "../QtNinePatch.h" 9 | %End 10 | 11 | public: 12 | static QPixmap createPixmapFromNinePatchImage(const QImage &, int, int); 13 | 14 | }; -------------------------------------------------------------------------------- /QLabel/Lib/QtNinePatch/sip/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/Lib/QtNinePatch/sip/__init__.py -------------------------------------------------------------------------------- /QLabel/Lib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/Lib/__init__.py -------------------------------------------------------------------------------- /QLabel/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/README.en.md -------------------------------------------------------------------------------- /QLabel/ScreenShot/CircleImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/ScreenShot/CircleImage.png -------------------------------------------------------------------------------- /QLabel/ScreenShot/ImageRotate.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/ScreenShot/ImageRotate.gif -------------------------------------------------------------------------------- /QLabel/ScreenShot/ImageSlipped.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/ScreenShot/ImageSlipped.gif -------------------------------------------------------------------------------- /QLabel/ScreenShot/ImageSlipped2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/ScreenShot/ImageSlipped2.gif -------------------------------------------------------------------------------- /QLabel/ScreenShot/NinePatchImage.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/ScreenShot/NinePatchImage.gif -------------------------------------------------------------------------------- /QLabel/ScreenShot/ShowImage.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/ScreenShot/ShowImage.gif -------------------------------------------------------------------------------- /QLabel/Tools/Image2XPM.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/Tools/Image2XPM.exe -------------------------------------------------------------------------------- /QLabel/Tools/rcc.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLabel/Tools/rcc.exe -------------------------------------------------------------------------------- /QLineEdit/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLineEdit/README.en.md -------------------------------------------------------------------------------- /QLineEdit/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QLineEdit/README.md -------------------------------------------------------------------------------- /QListView/ScreenShot/CustomWidgetItem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QListView/ScreenShot/CustomWidgetItem.png -------------------------------------------------------------------------------- /QListView/ScreenShot/CustomWidgetSortItem.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QListView/ScreenShot/CustomWidgetSortItem.gif -------------------------------------------------------------------------------- /QListView/ScreenShot/SortItemByRole.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QListView/ScreenShot/SortItemByRole.gif -------------------------------------------------------------------------------- /QListWidget/Data/Svg_icon_play_sm.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /QListWidget/Data/pic_v.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QListWidget/Data/pic_v.png -------------------------------------------------------------------------------- /QListWidget/Lib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QListWidget/Lib/__init__.py -------------------------------------------------------------------------------- /QListWidget/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QListWidget/README.en.md -------------------------------------------------------------------------------- /QListWidget/ScreenShot/DeleteCustomItem.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QListWidget/ScreenShot/DeleteCustomItem.gif -------------------------------------------------------------------------------- /QListWidget/ScreenShot/DragDrop.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QListWidget/ScreenShot/DragDrop.gif -------------------------------------------------------------------------------- /QListWidget/ScreenShot/FoldWidget.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QListWidget/ScreenShot/FoldWidget.gif -------------------------------------------------------------------------------- /QListWidget/ScreenShot/HotPlaylist.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QListWidget/ScreenShot/HotPlaylist.gif -------------------------------------------------------------------------------- /QListWidget/ScreenShot/SignalsExample.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QListWidget/ScreenShot/SignalsExample.gif -------------------------------------------------------------------------------- /QMdiArea/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMdiArea/README.en.md -------------------------------------------------------------------------------- /QMdiArea/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMdiArea/README.md -------------------------------------------------------------------------------- /QMenu/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMenu/README.en.md -------------------------------------------------------------------------------- /QMenu/ScreenShot/MultiSelect.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMenu/ScreenShot/MultiSelect.gif -------------------------------------------------------------------------------- /QMenu/ScreenShot/QQMenu.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMenu/ScreenShot/QQMenu.gif -------------------------------------------------------------------------------- /QMessageBox/Data/icons/Abort.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/Data/icons/Abort.png -------------------------------------------------------------------------------- /QMessageBox/Data/icons/Apply.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/Data/icons/Apply.png -------------------------------------------------------------------------------- /QMessageBox/Data/icons/Cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/Data/icons/Cancel.png -------------------------------------------------------------------------------- /QMessageBox/Data/icons/Close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/Data/icons/Close.png -------------------------------------------------------------------------------- /QMessageBox/Data/icons/Discard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/Data/icons/Discard.png -------------------------------------------------------------------------------- /QMessageBox/Data/icons/Help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/Data/icons/Help.png -------------------------------------------------------------------------------- /QMessageBox/Data/icons/Ignore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/Data/icons/Ignore.png -------------------------------------------------------------------------------- /QMessageBox/Data/icons/No.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/Data/icons/No.png -------------------------------------------------------------------------------- /QMessageBox/Data/icons/NoToAll.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/Data/icons/NoToAll.png -------------------------------------------------------------------------------- /QMessageBox/Data/icons/Ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/Data/icons/Ok.png -------------------------------------------------------------------------------- /QMessageBox/Data/icons/Open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/Data/icons/Open.png -------------------------------------------------------------------------------- /QMessageBox/Data/icons/Reset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/Data/icons/Reset.png -------------------------------------------------------------------------------- /QMessageBox/Data/icons/RestoreDefaults.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/Data/icons/RestoreDefaults.png -------------------------------------------------------------------------------- /QMessageBox/Data/icons/Retry.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/Data/icons/Retry.png -------------------------------------------------------------------------------- /QMessageBox/Data/icons/Save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/Data/icons/Save.png -------------------------------------------------------------------------------- /QMessageBox/Data/icons/SaveAll.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/Data/icons/SaveAll.png -------------------------------------------------------------------------------- /QMessageBox/Data/icons/Yes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/Data/icons/Yes.png -------------------------------------------------------------------------------- /QMessageBox/Data/icons/YesToAll.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/Data/icons/YesToAll.png -------------------------------------------------------------------------------- /QMessageBox/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/README.en.md -------------------------------------------------------------------------------- /QMessageBox/README.md: -------------------------------------------------------------------------------- 1 | # QMessageBox 2 | 3 | - 目录 4 | - [消息对话框倒计时关闭](#1消息对话框倒计时关闭) 5 | - [自定义图标等](#2自定义图标等) 6 | - [消息框按钮文字汉化](#3消息框按钮文字汉化) 7 | 8 | ## 1、消息对话框倒计时关闭 9 | [运行 CountDownClose.py](CountDownClose.py) 10 | 11 | 1. 通过继承`QMessageBox`实现倒计时关闭的对话框 12 | 1. `QTimer`定时器关闭窗口 13 | 14 | ![CountDownClose](ScreenShot/CountDownClose.gif) 15 | 16 | ## 2、自定义图标等 17 | [运行 CustomColorIcon.py](CustomColorIcon.py) 18 | 19 | ![CustomColorIcon](ScreenShot/CustomColorIcon.png) 20 | 21 | ## 3、消息框按钮文字汉化 22 | [运行 ChineseText.py](ChineseText.py) 23 | 24 | 1. 因为Qt5的翻译文件还是沿用旧的Qt4的结构导致部分地方无法翻译 25 | 2. 可以通过手动重新编译翻译文件解决问题 26 | 3. 这里可以通过QSS特性修改按钮文字,详细见代码 27 | 28 | ![ChineseText](ScreenShot/ChineseText.png) -------------------------------------------------------------------------------- /QMessageBox/ScreenShot/ChineseText.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/ScreenShot/ChineseText.png -------------------------------------------------------------------------------- /QMessageBox/ScreenShot/CountDownClose.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/ScreenShot/CountDownClose.gif -------------------------------------------------------------------------------- /QMessageBox/ScreenShot/CustomColorIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMessageBox/ScreenShot/CustomColorIcon.png -------------------------------------------------------------------------------- /QMetaObject/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMetaObject/README.en.md -------------------------------------------------------------------------------- /QMetaObject/ScreenShot/CallInThread.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QMetaObject/ScreenShot/CallInThread.png -------------------------------------------------------------------------------- /QOpenGLWidget/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QOpenGLWidget/README.en.md -------------------------------------------------------------------------------- /QOpenGLWidget/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QOpenGLWidget/README.md -------------------------------------------------------------------------------- /QPainter/Data/qt-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPainter/Data/qt-logo.png -------------------------------------------------------------------------------- /QPainter/README.en.md: -------------------------------------------------------------------------------- 1 | # QPainter -------------------------------------------------------------------------------- /QPainter/README.md: -------------------------------------------------------------------------------- 1 | # QPainter 2 | 3 | 4 | - 目录 5 | - [利用QPainter绘制各种图形](#QPainter绘制各种图形) 6 | - [简易画板](#简易画板) 7 | 8 | ## 1、QPainter绘制各种图形 9 | [运行 StockDialog.py](StockDialog.py) 10 | 11 | ![CountDownClose](ScreenShot/StockDialog.gif) 12 | 13 | ## 2、简易画板 14 | [运行 Draw.py](Draw.py) 15 | 16 | ![CustomColorIcon](ScreenShot/Draw.gif) -------------------------------------------------------------------------------- /QPainter/ScreenShot/Draw.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPainter/ScreenShot/Draw.gif -------------------------------------------------------------------------------- /QPainter/ScreenShot/StockDialog.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPainter/ScreenShot/StockDialog.gif -------------------------------------------------------------------------------- /QPlainTextEdit/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPlainTextEdit/README.en.md -------------------------------------------------------------------------------- /QPlainTextEdit/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPlainTextEdit/README.md -------------------------------------------------------------------------------- /QProcess/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QProcess/README.en.md -------------------------------------------------------------------------------- /QProcess/ScreenShot/GetCmdResult.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QProcess/ScreenShot/GetCmdResult.gif -------------------------------------------------------------------------------- /QProcess/ScreenShot/InteractiveRun.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QProcess/ScreenShot/InteractiveRun.gif -------------------------------------------------------------------------------- /QProgressBar/Lib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QProgressBar/Lib/__init__.py -------------------------------------------------------------------------------- /QProgressBar/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QProgressBar/README.en.md -------------------------------------------------------------------------------- /QProgressBar/ScreenShot/ColourfulProgress.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QProgressBar/ScreenShot/ColourfulProgress.gif -------------------------------------------------------------------------------- /QProgressBar/ScreenShot/MetroCircleProgress.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QProgressBar/ScreenShot/MetroCircleProgress.gif -------------------------------------------------------------------------------- /QProgressBar/ScreenShot/PercentProgressBar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QProgressBar/ScreenShot/PercentProgressBar.gif -------------------------------------------------------------------------------- /QProgressBar/ScreenShot/RoundProgressBar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QProgressBar/ScreenShot/RoundProgressBar.gif -------------------------------------------------------------------------------- /QProgressBar/ScreenShot/SimpleStyle.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QProgressBar/ScreenShot/SimpleStyle.gif -------------------------------------------------------------------------------- /QProgressBar/ScreenShot/WaterProgress.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QProgressBar/ScreenShot/WaterProgress.gif -------------------------------------------------------------------------------- /QProgressBar/ScreenShot/WaterProgressBar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QProgressBar/ScreenShot/WaterProgressBar.gif -------------------------------------------------------------------------------- /QPropertyAnimation/Data/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/Data/1.png -------------------------------------------------------------------------------- /QPropertyAnimation/Data/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/Data/2.png -------------------------------------------------------------------------------- /QPropertyAnimation/Data/Images/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/Data/Images/1.png -------------------------------------------------------------------------------- /QPropertyAnimation/Data/Images/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/Data/Images/2.png -------------------------------------------------------------------------------- /QPropertyAnimation/Data/Images/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/Data/Images/3.png -------------------------------------------------------------------------------- /QPropertyAnimation/Data/Images/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/Data/Images/4.png -------------------------------------------------------------------------------- /QPropertyAnimation/Data/Images/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/Data/Images/5.png -------------------------------------------------------------------------------- /QPropertyAnimation/Data/Images/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/Data/Images/6.png -------------------------------------------------------------------------------- /QPropertyAnimation/Data/Images/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/Data/Images/7.png -------------------------------------------------------------------------------- /QPropertyAnimation/Data/Images/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/Data/Images/8.png -------------------------------------------------------------------------------- /QPropertyAnimation/Data/Images/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/Data/Images/9.png -------------------------------------------------------------------------------- /QPropertyAnimation/Data/html/img/demo-1-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/Data/html/img/demo-1-bg.jpg -------------------------------------------------------------------------------- /QPropertyAnimation/Data/setup.py: -------------------------------------------------------------------------------- 1 | # from distutils.core import setup, Extension 2 | # 3 | # from Cython.Distutils import build_ext 4 | # 5 | # 6 | # setup( 7 | # cmdclass={'build_ext': build_ext}, 8 | # ext_modules=[Extension("pointtool", sources=[ 9 | # "pointtool.pyx"], language="c")] 10 | # ) 11 | 12 | from distutils.core import setup 13 | 14 | from Cython.Build import cythonize 15 | 16 | setup( 17 | ext_modules=cythonize("pointtool.pyx"), 18 | ) 19 | -------------------------------------------------------------------------------- /QPropertyAnimation/Lib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/Lib/__init__.py -------------------------------------------------------------------------------- /QPropertyAnimation/Lib/pointtool.pyd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/Lib/pointtool.pyd -------------------------------------------------------------------------------- /QPropertyAnimation/README.en.md: -------------------------------------------------------------------------------- 1 | # QPropertyAnimation -------------------------------------------------------------------------------- /QPropertyAnimation/ScreenShot/FadeInOut.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/ScreenShot/FadeInOut.gif -------------------------------------------------------------------------------- /QPropertyAnimation/ScreenShot/FlipWidgetAnimation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/ScreenShot/FlipWidgetAnimation.gif -------------------------------------------------------------------------------- /QPropertyAnimation/ScreenShot/MenuAnimation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/ScreenShot/MenuAnimation.gif -------------------------------------------------------------------------------- /QPropertyAnimation/ScreenShot/PageSwitching.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/ScreenShot/PageSwitching.gif -------------------------------------------------------------------------------- /QPropertyAnimation/ScreenShot/RlatticeEffect.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/ScreenShot/RlatticeEffect.gif -------------------------------------------------------------------------------- /QPropertyAnimation/ScreenShot/ShakeWindow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPropertyAnimation/ScreenShot/ShakeWindow.gif -------------------------------------------------------------------------------- /QProxyStyle/Lib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QProxyStyle/Lib/__init__.py -------------------------------------------------------------------------------- /QProxyStyle/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QProxyStyle/README.en.md -------------------------------------------------------------------------------- /QProxyStyle/README.md: -------------------------------------------------------------------------------- 1 | # QProxyStyle 2 | 3 | - 目录 4 | - [QTabWidget Tab文字方向](#1qtabwidget-tab文字方向) 5 | - [QTabWidget 角落控件位置](#2qtabwidget-角落控件位置) 6 | 7 | ## 1、QTabWidget Tab文字方向 8 | [运行 TabTextDirection.py](TabTextDirection.py) 9 | 10 | 1. 通过 `app.setStyle(TabBarStyle())` 设置代理样式 11 | 2. `sizeFromContents` 转置size 12 | 3. `drawControl` 绘制文字 13 | 14 | ![TabTextDirection](ScreenShot/TabTextDirection.png) 15 | 16 | ## 2、QTabWidget 角落控件位置 17 | [运行 TabCornerWidget.py](TabCornerWidget.py) 18 | 19 | 1. 通过 `app.setStyle(TabCornerStyle())` 设置代理样式 20 | 2. `setCornerWidget` 设置自定义角落控件 21 | 22 | 原理是通过代理样式中对 `SE_TabWidgetRightCorner` 计算的结果进行校正,使得角落控件占满右边空白位置, 23 | 然后再配合自定义控件中使用 `QSpacerItem` 占据右边位置使得 + 号按钮居左,表现效果为 + 号按钮跟随标签的增加和减少 24 | 25 | ![TabCornerStyle](ScreenShot/TabCornerStyle.png) -------------------------------------------------------------------------------- /QProxyStyle/ScreenShot/TabCornerStyle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QProxyStyle/ScreenShot/TabCornerStyle.png -------------------------------------------------------------------------------- /QProxyStyle/ScreenShot/TabTextDirection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QProxyStyle/ScreenShot/TabTextDirection.png -------------------------------------------------------------------------------- /QPushButton/Data/Fonts/FontAwesome/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPushButton/Data/Fonts/FontAwesome/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /QPushButton/Data/Images/avatar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPushButton/Data/Images/avatar.jpg -------------------------------------------------------------------------------- /QPushButton/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPushButton/README.en.md -------------------------------------------------------------------------------- /QPushButton/ScreenShot/BottomLineProgress.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPushButton/ScreenShot/BottomLineProgress.gif -------------------------------------------------------------------------------- /QPushButton/ScreenShot/FontRotate.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPushButton/ScreenShot/FontRotate.gif -------------------------------------------------------------------------------- /QPushButton/ScreenShot/NormalStyle.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPushButton/ScreenShot/NormalStyle.gif -------------------------------------------------------------------------------- /QPushButton/ScreenShot/RotateButton.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPushButton/ScreenShot/RotateButton.gif -------------------------------------------------------------------------------- /QPushButton/ScreenShot/RubberBandButton.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPushButton/ScreenShot/RubberBandButton.gif -------------------------------------------------------------------------------- /QPushButton/ScreenShot/SignalsExample.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QPushButton/ScreenShot/SignalsExample.gif -------------------------------------------------------------------------------- /QRadioButton/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QRadioButton/README.en.md -------------------------------------------------------------------------------- /QRadioButton/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QRadioButton/README.md -------------------------------------------------------------------------------- /QScrollArea/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollArea/README.en.md -------------------------------------------------------------------------------- /QScrollArea/README.md: -------------------------------------------------------------------------------- 1 | # QScrollArea 2 | 3 | - 目录 4 | - [仿QQ设置面板](#1仿QQ设置面板) 5 | 6 | ## 1、仿QQ设置面板 7 | [运行 QQSettingPanel.py](QQSettingPanel.py) | [查看 setting.ui](Data/setting.ui) 8 | 9 | 1. 左侧为`QListWidget`,右侧使用`QScrollArea`设置`QVBoxLayout`,然后依次往里面添加QWidget 10 | 2. 右侧添加`QWidget`的时候有两种方案 11 | 1. 左侧list根据序号来索引,右侧添加widget时给定带序号的变量名,如widget_0,widget_1,widget_2之类的,这样可以直接根据`QListWidget`的序号关联起来 12 | 2. 左侧list添加item时给定右侧对应的widget变量值 13 | 14 | 相关事件: 15 | 1. 绑定左侧`QListWidget`的`itemClicked`的到该item的索引 16 | 2. 绑定右侧滚动条的`valueChanged`事件得到pos 17 | 18 | 注意:当`itemClicked`时定位滚动条的值时,需要设置一个标志位用来避免`valueChanged`重复调用item的定位 19 | 20 | ![QQSettingPanel](ScreenShot/QQSettingPanel.gif) -------------------------------------------------------------------------------- /QScrollArea/ScreenShot/QQSettingPanel.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollArea/ScreenShot/QQSettingPanel.gif -------------------------------------------------------------------------------- /QScrollBar/Data/scrollbar/scrollbar_arrowdown_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/Data/scrollbar/scrollbar_arrowdown_down.png -------------------------------------------------------------------------------- /QScrollBar/Data/scrollbar/scrollbar_arrowdown_highlight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/Data/scrollbar/scrollbar_arrowdown_highlight.png -------------------------------------------------------------------------------- /QScrollBar/Data/scrollbar/scrollbar_arrowdown_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/Data/scrollbar/scrollbar_arrowdown_normal.png -------------------------------------------------------------------------------- /QScrollBar/Data/scrollbar/scrollbar_arrowleft_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/Data/scrollbar/scrollbar_arrowleft_down.png -------------------------------------------------------------------------------- /QScrollBar/Data/scrollbar/scrollbar_arrowleft_highlight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/Data/scrollbar/scrollbar_arrowleft_highlight.png -------------------------------------------------------------------------------- /QScrollBar/Data/scrollbar/scrollbar_arrowleft_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/Data/scrollbar/scrollbar_arrowleft_normal.png -------------------------------------------------------------------------------- /QScrollBar/Data/scrollbar/scrollbar_arrowright_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/Data/scrollbar/scrollbar_arrowright_down.png -------------------------------------------------------------------------------- /QScrollBar/Data/scrollbar/scrollbar_arrowright_highlight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/Data/scrollbar/scrollbar_arrowright_highlight.png -------------------------------------------------------------------------------- /QScrollBar/Data/scrollbar/scrollbar_arrowright_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/Data/scrollbar/scrollbar_arrowright_normal.png -------------------------------------------------------------------------------- /QScrollBar/Data/scrollbar/scrollbar_arrowup_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/Data/scrollbar/scrollbar_arrowup_down.png -------------------------------------------------------------------------------- /QScrollBar/Data/scrollbar/scrollbar_arrowup_highlight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/Data/scrollbar/scrollbar_arrowup_highlight.png -------------------------------------------------------------------------------- /QScrollBar/Data/scrollbar/scrollbar_arrowup_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/Data/scrollbar/scrollbar_arrowup_normal.png -------------------------------------------------------------------------------- /QScrollBar/Data/scrollbar/scrollbar_bar_highlight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/Data/scrollbar/scrollbar_bar_highlight.png -------------------------------------------------------------------------------- /QScrollBar/Data/scrollbar/scrollbar_bar_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/Data/scrollbar/scrollbar_bar_normal.png -------------------------------------------------------------------------------- /QScrollBar/Data/scrollbar/scrollbar_bkg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/Data/scrollbar/scrollbar_bkg.png -------------------------------------------------------------------------------- /QScrollBar/Data/scrollbar/scrollbar_horzbar_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/Data/scrollbar/scrollbar_horzbar_down.png -------------------------------------------------------------------------------- /QScrollBar/Data/scrollbar/scrollbar_horzbar_highlight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/Data/scrollbar/scrollbar_horzbar_highlight.png -------------------------------------------------------------------------------- /QScrollBar/Data/scrollbar/scrollbar_horzbar_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/Data/scrollbar/scrollbar_horzbar_normal.png -------------------------------------------------------------------------------- /QScrollBar/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/README.en.md -------------------------------------------------------------------------------- /QScrollBar/README.md: -------------------------------------------------------------------------------- 1 | # QScrollBar 2 | 3 | - 目录 4 | - [滚动条样式美化](#1滚动条样式美化) 5 | 6 | ## 1、滚动条样式美化 7 | [运行 StyleScrollBar.py](StyleScrollBar.py) 8 | 9 | 使用QSS和图片对滚动条进行美化(horizontal 横向、vertical 纵向) 10 | 11 | 1. 横向或纵向滚动条整体,也就是(horizontal、vertical) 12 | 2. 滚动条上面的小滑块(handle) 13 | 3. 纵向上部、横向左侧区域(sub-page) 14 | 4. 纵向下部、横向右侧区域(add-page) 15 | 5. 纵向上部、横向左侧三角形区域(sub-line) 16 | 6. 纵向下部、横向右侧三角形区域(add-line) 17 | 7. 纵向上部、横向左侧三角形(up-arrow、left-arrow) 18 | 8. 纵向下部、横向右侧三角形(down-arrow、right-arrow) 19 | 20 | ![StyleScrollBar1](ScreenShot/StyleScrollBar1.jpg) 21 | ![StyleScrollBar2](ScreenShot/StyleScrollBar2.jpg) 22 | -------------------------------------------------------------------------------- /QScrollBar/ScreenShot/StyleScrollBar1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/ScreenShot/StyleScrollBar1.jpg -------------------------------------------------------------------------------- /QScrollBar/ScreenShot/StyleScrollBar2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QScrollBar/ScreenShot/StyleScrollBar2.jpg -------------------------------------------------------------------------------- /QSerialPort/Lib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QSerialPort/Lib/__init__.py -------------------------------------------------------------------------------- /QSerialPort/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QSerialPort/README.en.md -------------------------------------------------------------------------------- /QSerialPort/README.md: -------------------------------------------------------------------------------- 1 | # QSerialPort 2 | 3 | - 目录 4 | - [串口调试小助手](#1串口调试小助手) 5 | 6 | ## 1、串口调试小助手 7 | [运行 SerialDebugAssistant.py](SerialDebugAssistant.py) | [查看 UiSerialPort.ui](Data/UiSerialPort.ui) 8 | 9 | 用`QSerialPort`写了个类似串口调试小助手的工具, 这个类的官方资料: http://doc.qt.io/qt-5/qserialport.html 10 | 11 | 1. 通过`QSerialPortInfo.availablePorts()` 获取所有可用的串口 12 | 1. `QSerialPort.setPortName` 设置串口名 13 | 1. `QSerialPort.setBaudRate` 设置波特率 14 | 1. `QSerialPort.setParity` 设置校验位 15 | 1. `QSerialPort.setDataBits` 设置数据位 16 | 1. `QSerialPort.setStopBits` 设置停止位 17 | 1. `QSerialPort.setFlowControl` 设置流控制 18 | 19 | 20 | ![SerialDebugAssistant](ScreenShot/SerialDebugAssistant.gif) -------------------------------------------------------------------------------- /QSerialPort/ScreenShot/SerialDebugAssistant.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QSerialPort/ScreenShot/SerialDebugAssistant.gif -------------------------------------------------------------------------------- /QSlider/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QSlider/README.en.md -------------------------------------------------------------------------------- /QSlider/ScreenShot/ClickJumpSlider.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QSlider/ScreenShot/ClickJumpSlider.gif -------------------------------------------------------------------------------- /QSlider/ScreenShot/LfSlider.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QSlider/ScreenShot/LfSlider.gif -------------------------------------------------------------------------------- /QSlider/ScreenShot/PaintQSlider.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QSlider/ScreenShot/PaintQSlider.gif -------------------------------------------------------------------------------- /QSlider/ScreenShot/QssQSlider.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QSlider/ScreenShot/QssQSlider.gif -------------------------------------------------------------------------------- /QSpacerItem/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QSpacerItem/README.en.md -------------------------------------------------------------------------------- /QSpacerItem/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QSpacerItem/README.md -------------------------------------------------------------------------------- /QSpinBox/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QSpinBox/README.en.md -------------------------------------------------------------------------------- /QSpinBox/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QSpinBox/README.md -------------------------------------------------------------------------------- /QSplashScreen/Data/splash.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QSplashScreen/Data/splash.gif -------------------------------------------------------------------------------- /QSplashScreen/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QSplashScreen/README.en.md -------------------------------------------------------------------------------- /QSplashScreen/README.md: -------------------------------------------------------------------------------- 1 | # QSplashScreen 2 | 3 | - 目录 4 | - [启动画面动画](#1启动画面动画) 5 | 6 | ## 1、启动画面动画 7 | [运行 GifSplashScreen.py](GifSplashScreen.py) 8 | 9 | 结合 `QMovie` 的 `frameChanged` 信号 不停地设置新的pixmap图片 10 | 11 | ![GifSplashScreen](ScreenShot/GifSplashScreen.gif) -------------------------------------------------------------------------------- /QSplashScreen/ScreenShot/GifSplashScreen.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QSplashScreen/ScreenShot/GifSplashScreen.gif -------------------------------------------------------------------------------- /QSplitter/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QSplitter/README.en.md -------------------------------------------------------------------------------- /QSplitter/README.md: -------------------------------------------------------------------------------- 1 | # QSplitter 2 | 3 | - 目录 4 | - [分割窗口的分割条重绘](#1分割窗口的分割条重绘) 5 | 6 | ## 1、分割窗口的分割条重绘 7 | [运行 RewriteHandle.py](RewriteHandle.py) 8 | 9 | 1. 原理在于`QSplitter`在创建分割条的时候会调用`createHandle`函数 10 | 1. 通过重新写`createHandle`返回自己的`QSplitterHandle`类 11 | 1. 通过`QSplitterHandle`的`paintEvent`实现绘制其它形状, 12 | 1. 重写`mousePressEvent`和`mouseMoveEvent`来实现鼠标的其它事件 13 | 14 | ![RewriteHandle](ScreenShot/RewriteHandle.gif) -------------------------------------------------------------------------------- /QSplitter/ScreenShot/RewriteHandle.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QSplitter/ScreenShot/RewriteHandle.gif -------------------------------------------------------------------------------- /QStackedLayout/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QStackedLayout/README.en.md -------------------------------------------------------------------------------- /QStackedLayout/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QStackedLayout/README.md -------------------------------------------------------------------------------- /QStackedWidget/Data/01.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QStackedWidget/Data/01.ico -------------------------------------------------------------------------------- /QStackedWidget/Data/02.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QStackedWidget/Data/02.ico -------------------------------------------------------------------------------- /QStackedWidget/Data/03.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QStackedWidget/Data/03.ico -------------------------------------------------------------------------------- /QStackedWidget/Data/04.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QStackedWidget/Data/04.ico -------------------------------------------------------------------------------- /QStackedWidget/Data/05.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QStackedWidget/Data/05.ico -------------------------------------------------------------------------------- /QStackedWidget/Data/06.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QStackedWidget/Data/06.ico -------------------------------------------------------------------------------- /QStackedWidget/Data/07.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QStackedWidget/Data/07.ico -------------------------------------------------------------------------------- /QStackedWidget/Data/08.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QStackedWidget/Data/08.ico -------------------------------------------------------------------------------- /QStackedWidget/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QStackedWidget/README.en.md -------------------------------------------------------------------------------- /QStackedWidget/README.md: -------------------------------------------------------------------------------- 1 | # QStackedWidget 2 | 3 | - 目录 4 | - [左侧选项卡](#1左侧选项卡) 5 | 6 | ## 1、左侧选项卡 7 | [运行 LeftTabStacked.py](LeftTabStacked.py) 8 | 9 | 本来使用`QTabWidget`可以实现多标签页面,但是当标签在左侧时会出现文字方向不对的问题, 10 | 11 | 可以通过自定义`QTabBar`来解决,也可以采用`QListWidget`结合`QStackedWidget`的方式。 12 | 13 | 1. 左侧为`QListWidget`,右侧使用`QStackedWidget`,然后依次往里面添加`QWidget` 14 | 2. 右侧添加`QWidget`的时候有两种方案 15 | 1. 左侧list根据序号来索引,右侧添加widget时给定带序号的变量名,如widget_0,widget_1,widget_2之类的,这样可以直接根据`QListWidget`的序号关联起来 16 | 2. 左侧list添加item时给定右侧对应的widget变量值 17 | 18 | PS: 用设计设的做法 : https://www.jianshu.com/p/dac62b5c225c 19 | 20 | ![LeftTabStacked](ScreenShot/LeftTabStacked.gif) 21 | -------------------------------------------------------------------------------- /QStackedWidget/ScreenShot/LeftTabStacked.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QStackedWidget/ScreenShot/LeftTabStacked.gif -------------------------------------------------------------------------------- /QSystemTrayIcon/README.md: -------------------------------------------------------------------------------- 1 | # QSystemTrayIcon 2 | 3 | - 目录 4 | - [最小化到系统托盘](#1最小化到系统托盘) 5 | - [系统托盘闪烁](#2系统托盘闪烁) 6 | 7 | ## 1、最小化到系统托盘 8 | 9 | [运行 MinimizeToTray.py](MinimizeToTray.py) 10 | 11 | 选择 Minimize to Tray 在关闭窗口时最小化到系统托盘。 12 | 13 | > Reference: https://evileg.com/en/post/68/ 14 | 15 | ![MinimizeToTray](ScreenShot/MinimizeToTray.gif) 16 | 17 | ## 2、系统托盘闪烁 18 | 19 | [运行 TrayNotify.py](TrayNotify.py) 20 | 21 | 通过定时器设置不同图标来实现闪烁。 -------------------------------------------------------------------------------- /QSystemTrayIcon/ScreenShot/MinimizeToTray.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QSystemTrayIcon/ScreenShot/MinimizeToTray.gif -------------------------------------------------------------------------------- /QTabWidget/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTabWidget/README.en.md -------------------------------------------------------------------------------- /QTabWidget/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTabWidget/README.md -------------------------------------------------------------------------------- /QTableView/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTableView/README.en.md -------------------------------------------------------------------------------- /QTableView/README.md: -------------------------------------------------------------------------------- 1 | # QTableView 2 | 3 | - 目录 4 | - [表格内容复制](#1表格内容复制) 5 | 6 | ## 1、表格内容复制 7 | [运行 CopyContent.py](CopyContent.py) 8 | 9 | 1. 通过构造一个和选中区域一样的空数组,然后对数组进行填充形成表格 10 | 1. 最后循环数组用`\t`进行拼接`join`,换行用`\r\n` 11 | 1. 把字符串复制到剪切板中 12 | 13 | ![CopyContent1](ScreenShot/CopyContent1.png) ![CopyContent2](ScreenShot/CopyContent2.png) 14 | 15 | -------------------------------------------------------------------------------- /QTableView/ScreenShot/CopyContent1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTableView/ScreenShot/CopyContent1.png -------------------------------------------------------------------------------- /QTableView/ScreenShot/CopyContent2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTableView/ScreenShot/CopyContent2.png -------------------------------------------------------------------------------- /QTableWidget/Data/data.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTableWidget/Data/data.sqlite3 -------------------------------------------------------------------------------- /QTableWidget/Lib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTableWidget/Lib/__init__.py -------------------------------------------------------------------------------- /QTableWidget/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTableWidget/README.en.md -------------------------------------------------------------------------------- /QTableWidget/README.md: -------------------------------------------------------------------------------- 1 | # QTableWidget 2 | 3 | - 目录 4 | - [Sqlalchemy动态拼接字段查询显示表格](#1Sqlalchemy动态拼接字段查询显示表格) 5 | - [表格嵌入日历,下拉框,进度条,按钮](#2表格嵌入) 6 | 7 | ## 1、Sqlalchemy动态拼接字段查询显示表格 8 | [运行 SqlQuery.py](SqlQuery.py) | [查看 mainui.ui](Data/mainui.ui) 9 | 10 | 通过判断界面中选择的条件对`Sqlalchemy`的`model`进行字段拼接从而实现按条件查询 11 | 12 | ![SqlQuery](ScreenShot/SqlQuery.png) 13 | 14 | ## 2、TableWidget嵌入部件 15 | [运行 TableWidget.py](TableWidget.py) 16 | 点击开始按钮,进度条开始 17 | ![嵌入小部件](ScreenShot/table.png) 18 | -------------------------------------------------------------------------------- /QTableWidget/ScreenShot/SqlQuery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTableWidget/ScreenShot/SqlQuery.png -------------------------------------------------------------------------------- /QTableWidget/ScreenShot/table.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTableWidget/ScreenShot/table.png -------------------------------------------------------------------------------- /QTextBrowser/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTextBrowser/README.en.md -------------------------------------------------------------------------------- /QTextBrowser/README.md: -------------------------------------------------------------------------------- 1 | # QTextBrowser 2 | 3 | - 目录 4 | - [动态加载图片](#1动态加载图片) 5 | 6 | ## 1、动态加载图片 7 | [运行 DynamicRes.py](DynamicRes.py) 8 | 9 | 动态加载资源有多种方式,这里主要介绍 [addResource](https://doc.qt.io/qt-5/qtextdocument.html#addResource) 和 [loadResource](https://doc.qt.io/qt-5/qtextbrowser.html#loadResource) 函数 10 | 11 | 1、通过 `self.textBrowser.document().addResource(QTextDocument.ImageResource, QUrl('dynamic:/images/weixin.png'), img)` 向文档中注册新的资源索引,类似QRC 12 | 2、通过重载 `loadResource` 函数可以监听到所有的资源加载,然后动态返回内容 13 | 14 | ![DynamicRes](ScreenShot/DynamicRes.gif) -------------------------------------------------------------------------------- /QTextBrowser/ScreenShot/DynamicRes.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTextBrowser/ScreenShot/DynamicRes.gif -------------------------------------------------------------------------------- /QTextEdit/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTextEdit/README.en.md -------------------------------------------------------------------------------- /QTextEdit/README.md: -------------------------------------------------------------------------------- 1 | # QTextEdit 2 | 3 | - 目录 4 | - [文本查找高亮](#1文本查找高亮) 5 | 6 | ## 1、文本查找高亮 7 | [运行 HighlightText.py](HighlightText.py) 8 | 9 | 主要用到`mergeCurrentCharFormat`函数 10 | 11 | ![HighlightText](ScreenShot/HighlightText.gif) -------------------------------------------------------------------------------- /QTextEdit/ScreenShot/HighlightText.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTextEdit/ScreenShot/HighlightText.gif -------------------------------------------------------------------------------- /QThread/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QThread/README.en.md -------------------------------------------------------------------------------- /QThread/ScreenShot/InheritQThread.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QThread/ScreenShot/InheritQThread.png -------------------------------------------------------------------------------- /QThread/ScreenShot/QuitThread.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QThread/ScreenShot/QuitThread.jpg -------------------------------------------------------------------------------- /QThread/ScreenShot/SuspendThread.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QThread/ScreenShot/SuspendThread.gif -------------------------------------------------------------------------------- /QThread/ScreenShot/WakeupThread.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QThread/ScreenShot/WakeupThread.gif -------------------------------------------------------------------------------- /QTimeEdit/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTimeEdit/README.en.md -------------------------------------------------------------------------------- /QTimeEdit/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTimeEdit/README.md -------------------------------------------------------------------------------- /QToolBox/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QToolBox/README.en.md -------------------------------------------------------------------------------- /QToolBox/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QToolBox/README.md -------------------------------------------------------------------------------- /QToolButton/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QToolButton/README.en.md -------------------------------------------------------------------------------- /QToolButton/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QToolButton/README.md -------------------------------------------------------------------------------- /QTreeView/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTreeView/README.en.md -------------------------------------------------------------------------------- /QTreeView/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTreeView/README.md -------------------------------------------------------------------------------- /QTreeWidget/Data/weixin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTreeWidget/Data/weixin.png -------------------------------------------------------------------------------- /QTreeWidget/Lib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTreeWidget/Lib/__init__.py -------------------------------------------------------------------------------- /QTreeWidget/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTreeWidget/README.en.md -------------------------------------------------------------------------------- /QTreeWidget/README.md: -------------------------------------------------------------------------------- 1 | # QTreeWidget 2 | 3 | - 目录 4 | - [通过json数据生成树形结构](#1通过json数据生成树形结构) 5 | - [点击父节点全选/取消全选子节点](#2点击父节点全选取消全选子节点) 6 | - [禁止父节点/禁止父节点](#3禁止父节点) 7 | 8 | ## 1、通过json数据生成树形结构 9 | [运行 ParsingJson.py](ParsingJson.py) 10 | 11 | 解析每一层json数据中的list 12 | 13 | 14 | ![ParsingJson](ScreenShot/ParsingJson.png) 15 | 16 | ## 2、点击父节点全选/取消全选子节点 17 | [运行 testTreeWidget.py](testTreeWidget.py) | [查看 testTree.ui](Data/testTree.ui) 18 | 19 | 点击父节点全选/取消全选子节点 20 | 21 | ![testTreeWidget](ScreenShot/allSelectNode.png) 22 | 23 | ## 3、禁止父节点 24 | [运行 ParentNodeForbid.py](ParentNodeForbid.py) 25 | 26 | 1. 父节点通过设置`pitem1.setFlags(pitem1.flags() & ~Qt.ItemIsSelectable)`为不可选 27 | 2. 完全禁用点击等需要重写`mousePressEvent`事件并结合item的标志来判断 28 | 29 | ![ParentNodeForbid](ScreenShot/ParentNodeForbid.gif) -------------------------------------------------------------------------------- /QTreeWidget/ScreenShot/ParentNodeForbid.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTreeWidget/ScreenShot/ParentNodeForbid.gif -------------------------------------------------------------------------------- /QTreeWidget/ScreenShot/ParsingJson.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTreeWidget/ScreenShot/ParsingJson.png -------------------------------------------------------------------------------- /QTreeWidget/ScreenShot/allSelectNode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTreeWidget/ScreenShot/allSelectNode.png -------------------------------------------------------------------------------- /QTreeWidget/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QTreeWidget/__init__.py -------------------------------------------------------------------------------- /QVBoxLayout/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QVBoxLayout/README.en.md -------------------------------------------------------------------------------- /QVBoxLayout/ScreenShot/BaseVerticalLayout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QVBoxLayout/ScreenShot/BaseVerticalLayout.png -------------------------------------------------------------------------------- /QVBoxLayout/ScreenShot/VerticalLayoutMargin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QVBoxLayout/ScreenShot/VerticalLayoutMargin.png -------------------------------------------------------------------------------- /QVBoxLayout/ScreenShot/VerticalLayoutStretch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QVBoxLayout/ScreenShot/VerticalLayoutStretch.png -------------------------------------------------------------------------------- /QWebChannel/Lib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebChannel/Lib/__init__.py -------------------------------------------------------------------------------- /QWebChannel/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebChannel/README.en.md -------------------------------------------------------------------------------- /QWebChannel/README.md: -------------------------------------------------------------------------------- 1 | # QWebChannel 2 | 3 | - 目录 4 | - [和Js互相调用](#1和Js互相调用) 5 | 6 | ## 1、和Js互相调用 7 | [运行 CallEachWithJs.py](CallEachWithJs.py) 8 | 9 | 通过`qwebchannel.js`和`QWebChannel.registerObject`通过中间件`WebSocket`进行对象和Javascript的交互(类似于json rpc) 10 | 该方法类似与`QWebEngineView`中的例子,同时该demo也适用与nodejs。 11 | 12 | ![CallEachWithJs](ScreenShot/CallEachWithJs.gif) -------------------------------------------------------------------------------- /QWebChannel/ScreenShot/CallEachWithJs.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebChannel/ScreenShot/CallEachWithJs.gif -------------------------------------------------------------------------------- /QWebEngineView/Data/app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebEngineView/Data/app.png -------------------------------------------------------------------------------- /QWebEngineView/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebEngineView/README.en.md -------------------------------------------------------------------------------- /QWebEngineView/ScreenShot/BlockRequest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebEngineView/ScreenShot/BlockRequest.png -------------------------------------------------------------------------------- /QWebEngineView/ScreenShot/BlockRequestData.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebEngineView/ScreenShot/BlockRequestData.png -------------------------------------------------------------------------------- /QWebEngineView/ScreenShot/GetCookie.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebEngineView/ScreenShot/GetCookie.png -------------------------------------------------------------------------------- /QWebEngineView/ScreenShot/JsSignals.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebEngineView/ScreenShot/JsSignals.gif -------------------------------------------------------------------------------- /QWebEngineView/ScreenShot/ScreenShotPage.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebEngineView/ScreenShot/ScreenShotPage.gif -------------------------------------------------------------------------------- /QWebEngineView/ScreenShot/SetCookies.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebEngineView/ScreenShot/SetCookies.png -------------------------------------------------------------------------------- /QWebEngineView/ScreenShot/SiteDiffUser.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebEngineView/ScreenShot/SiteDiffUser.gif -------------------------------------------------------------------------------- /QWebView/Data/NPSWF32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebView/Data/NPSWF32.dll -------------------------------------------------------------------------------- /QWebView/Data/data.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | tree.html 4 | jquery.js 5 | 6 | 7 | -------------------------------------------------------------------------------- /QWebView/Lib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebView/Lib/__init__.py -------------------------------------------------------------------------------- /QWebView/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebView/README.en.md -------------------------------------------------------------------------------- /QWebView/ScreenShot/BlockRequest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebView/ScreenShot/BlockRequest.png -------------------------------------------------------------------------------- /QWebView/ScreenShot/DreamTree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebView/ScreenShot/DreamTree.png -------------------------------------------------------------------------------- /QWebView/ScreenShot/GetCookie.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebView/ScreenShot/GetCookie.png -------------------------------------------------------------------------------- /QWebView/ScreenShot/JsSignals.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebView/ScreenShot/JsSignals.gif -------------------------------------------------------------------------------- /QWebView/ScreenShot/PlayFlash.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebView/ScreenShot/PlayFlash.gif -------------------------------------------------------------------------------- /QWebView/ScreenShot/ScreenShotPage.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWebView/ScreenShot/ScreenShotPage.gif -------------------------------------------------------------------------------- /QWidget/Lib/CustomWidget.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | 4 | """ 5 | Created on 2017年12月10日 6 | @author: Irony 7 | @site: https://pyqt.site , https://github.com/PyQt5 8 | @email: 892768447@qq.com 9 | @file: CustomWidget 10 | @description: 11 | """ 12 | 13 | try: 14 | from PyQt5.QtWidgets import QWidget, QVBoxLayout, QLabel 15 | except ImportError: 16 | from PySide2.QtWidgets import QWidget, QVBoxLayout, QLabel 17 | 18 | 19 | class CustomWidget(QWidget): 20 | 21 | def __init__(self, *args, **kwargs): 22 | super(CustomWidget, self).__init__(*args, **kwargs) 23 | layout = QVBoxLayout(self) 24 | layout.addWidget(QLabel("我是自定义CustomWidget", self)) 25 | -------------------------------------------------------------------------------- /QWidget/Lib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWidget/Lib/__init__.py -------------------------------------------------------------------------------- /QWidget/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWidget/README.en.md -------------------------------------------------------------------------------- /QWidget/README.md: -------------------------------------------------------------------------------- 1 | # QWidget 2 | 3 | - 目录 4 | - [样式表测试](#1样式表测试) 5 | 6 | ## 1、样式表测试 7 | [运行 WidgetStyle.py](WidgetStyle.py) 8 | 9 | 1. 一种是重写 `paintEvent` 10 | 2. 设置 `Qt.WA_StyledBackground` 后可以通过QSS增加背景等 11 | 12 | ![WidgetStyle](ScreenShot/WidgetStyle.png) -------------------------------------------------------------------------------- /QWidget/ScreenShot/WidgetStyle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWidget/ScreenShot/WidgetStyle.png -------------------------------------------------------------------------------- /QWidget/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QWidget/__init__.py -------------------------------------------------------------------------------- /QtChart/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtChart/README.en.md -------------------------------------------------------------------------------- /QtChart/ScreenShot/AreaChart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtChart/ScreenShot/AreaChart.png -------------------------------------------------------------------------------- /QtChart/ScreenShot/BarChart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtChart/ScreenShot/BarChart.png -------------------------------------------------------------------------------- /QtChart/ScreenShot/BarStack.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtChart/ScreenShot/BarStack.gif -------------------------------------------------------------------------------- /QtChart/ScreenShot/ChartThemes.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtChart/ScreenShot/ChartThemes.gif -------------------------------------------------------------------------------- /QtChart/ScreenShot/CpuLineChart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtChart/ScreenShot/CpuLineChart.png -------------------------------------------------------------------------------- /QtChart/ScreenShot/CustomXYaxis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtChart/ScreenShot/CustomXYaxis.png -------------------------------------------------------------------------------- /QtChart/ScreenShot/DynamicSplineChart.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtChart/ScreenShot/DynamicSplineChart.gif -------------------------------------------------------------------------------- /QtChart/ScreenShot/HorizontalBarChart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtChart/ScreenShot/HorizontalBarChart.png -------------------------------------------------------------------------------- /QtChart/ScreenShot/HorizontalPercentBarChart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtChart/ScreenShot/HorizontalPercentBarChart.png -------------------------------------------------------------------------------- /QtChart/ScreenShot/LineChart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtChart/ScreenShot/LineChart.png -------------------------------------------------------------------------------- /QtChart/ScreenShot/LineStack.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtChart/ScreenShot/LineStack.gif -------------------------------------------------------------------------------- /QtChart/ScreenShot/PercentBarChart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtChart/ScreenShot/PercentBarChart.png -------------------------------------------------------------------------------- /QtChart/ScreenShot/PieChart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtChart/ScreenShot/PieChart.png -------------------------------------------------------------------------------- /QtChart/ScreenShot/ScatterChart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtChart/ScreenShot/ScatterChart.png -------------------------------------------------------------------------------- /QtChart/ScreenShot/SplineChart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtChart/ScreenShot/SplineChart.png -------------------------------------------------------------------------------- /QtChart/ScreenShot/ToolTip.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtChart/ScreenShot/ToolTip.gif -------------------------------------------------------------------------------- /QtChart/ScreenShot/ToolTip2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtChart/ScreenShot/ToolTip2.gif -------------------------------------------------------------------------------- /QtChart/requirements.txt: -------------------------------------------------------------------------------- 1 | PyQtChart 2 | -------------------------------------------------------------------------------- /QtDataVisualization/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtDataVisualization/README.en.md -------------------------------------------------------------------------------- /QtDataVisualization/README.md: -------------------------------------------------------------------------------- 1 | # QtDataVisualization 2 | 3 | - 目录 4 | - [柱状图3D](#1柱状图3D) 5 | - [太阳磁场线](#2太阳磁场线) 6 | - [余弦波3D](#3余弦波3D) 7 | 8 | ## 1、柱状图3D 9 | [运行 BarsVisualization.py](BarsVisualization.py) 10 | 11 | ![BarsVisualization](ScreenShot/BarsVisualization.gif) 12 | 13 | ## 2、太阳磁场线 14 | [运行 MagneticOfSun.py](MagneticOfSun.py) 15 | 16 | ![MagneticOfSun](ScreenShot/MagneticOfSun.gif) 17 | 18 | ## 3、余弦波3D 19 | [运行 ScatterVisualization.py](ScatterVisualization.py) 20 | 21 | ![ScatterVisualization](ScreenShot/ScatterVisualization.gif) -------------------------------------------------------------------------------- /QtDataVisualization/ScreenShot/BarsVisualization.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtDataVisualization/ScreenShot/BarsVisualization.gif -------------------------------------------------------------------------------- /QtDataVisualization/ScreenShot/MagneticOfSun.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtDataVisualization/ScreenShot/MagneticOfSun.gif -------------------------------------------------------------------------------- /QtDataVisualization/ScreenShot/ScatterVisualization.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtDataVisualization/ScreenShot/ScatterVisualization.gif -------------------------------------------------------------------------------- /QtDataVisualization/requirements.txt: -------------------------------------------------------------------------------- 1 | PyQtDataVisualization 2 | -------------------------------------------------------------------------------- /QtQuick/FlatStyle/MainForm.ui.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtQuick/FlatStyle/MainForm.ui.qmlc -------------------------------------------------------------------------------- /QtQuick/FlatStyle/flatstyle.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtQuick/FlatStyle/flatstyle.qmlc -------------------------------------------------------------------------------- /QtQuick/FlatStyle/imports/Theme/Theme.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtQuick/FlatStyle/imports/Theme/Theme.qmlc -------------------------------------------------------------------------------- /QtQuick/FlatStyle/imports/Theme/qmldir: -------------------------------------------------------------------------------- 1 | module Theme 2 | singleton Theme 1.0 Theme.qml 3 | -------------------------------------------------------------------------------- /QtQuick/FlatStyle/qtquickcontrols2.conf: -------------------------------------------------------------------------------- 1 | [Controls] 2 | Style=Flat 3 | -------------------------------------------------------------------------------- /QtQuick/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtQuick/README.en.md -------------------------------------------------------------------------------- /QtQuick/ScreenShot/FlatStyle.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtQuick/ScreenShot/FlatStyle.gif -------------------------------------------------------------------------------- /QtQuick/ScreenShot/Signals.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtQuick/ScreenShot/Signals.gif -------------------------------------------------------------------------------- /QtQuick/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtQuick/__init__.py -------------------------------------------------------------------------------- /QtRemoteObjects/README.en.md: -------------------------------------------------------------------------------- 1 | # QtRemoteObjects -------------------------------------------------------------------------------- /QtRemoteObjects/ScreenShot/SyncUi.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtRemoteObjects/ScreenShot/SyncUi.gif -------------------------------------------------------------------------------- /QtRemoteObjects/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtRemoteObjects/__init__.py -------------------------------------------------------------------------------- /QtWinExtras/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtWinExtras/README.en.md -------------------------------------------------------------------------------- /QtWinExtras/README.md: -------------------------------------------------------------------------------- 1 | # QtWinExtras 2 | 3 | - 目录 4 | - [任务栏进度条](#1任务栏进度条) 5 | - [任务栏缩略图工具按钮](#2任务栏缩略图工具按钮) 6 | 7 | ## 1、任务栏进度条 8 | [运行 TaskbarProgress.py](TaskbarProgress.py) 9 | 10 | `QWinTaskbarProgress`类似和`QProgressBar`一样的操作 11 | 12 | ![TaskbarProgress](ScreenShot/TaskbarProgress.gif) 13 | 14 | ## 2、任务栏缩略图工具按钮 15 | [运行 ThumbnailToolBar.py](ThumbnailToolBar.py) 16 | 17 | `QWinThumbnailToolBar`和`QWinThumbnailToolButton`的组合实现音乐播放器的播放、上下一曲按钮 18 | 19 | ![ThumbnailToolBar](ScreenShot/ThumbnailToolBar.gif) -------------------------------------------------------------------------------- /QtWinExtras/ScreenShot/TaskbarProgress.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtWinExtras/ScreenShot/TaskbarProgress.gif -------------------------------------------------------------------------------- /QtWinExtras/ScreenShot/ThumbnailToolBar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/QtWinExtras/ScreenShot/ThumbnailToolBar.gif -------------------------------------------------------------------------------- /Test/C++中修改PyQt对象/Cold.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/C++中修改PyQt对象/Cold.dll -------------------------------------------------------------------------------- /Test/C++中修改PyQt对象/Cold/build.bat: -------------------------------------------------------------------------------- 1 | qmake 2 | nmake -------------------------------------------------------------------------------- /Test/C++中修改PyQt对象/Cold/cold.cpp: -------------------------------------------------------------------------------- 1 | #include "cold.h" 2 | 3 | void cold(QImage &src, int delta) 4 | { 5 | int rows = src.height(); 6 | int cols = src.width(); 7 | for (int i = 0; i < rows; i++) 8 | { 9 | QRgb *line = (QRgb *)src.scanLine(i); 10 | for (int j = 0; j < cols; j++) 11 | { 12 | int r = qRed(line[j]); 13 | int g = qGreen(line[j]); 14 | int b = qBlue(line[j]) + delta; 15 | b = qBound(0, b, 255); 16 | src.setPixel(j, i, qRgb(r, g, b)); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Test/C++中修改PyQt对象/Cold/cold.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | extern "C" __declspec(dllexport) void cold(QImage &src, int delta); -------------------------------------------------------------------------------- /Test/C++中修改PyQt对象/src.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/C++中修改PyQt对象/src.jpg -------------------------------------------------------------------------------- /Test/ChartView/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/ChartView/loading.gif -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/Release/pydext.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/C和C++扩展/pydext/Release/pydext.exp -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/Release/pydext.iobj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/C和C++扩展/pydext/Release/pydext.iobj -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/Release/pydext.ipdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/C和C++扩展/pydext/Release/pydext.ipdb -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/Release/pydext.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/C和C++扩展/pydext/Release/pydext.lib -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/Release/pydext.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/C和C++扩展/pydext/Release/pydext.pdb -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/Release/pydext.pyd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/C和C++扩展/pydext/Release/pydext.pyd -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/pydext/Release/pydext.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/C和C++扩展/pydext/pydext/Release/pydext.obj -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/pydext/Release/pydext.tlog/CL.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/C和C++扩展/pydext/pydext/Release/pydext.tlog/CL.command.1.tlog -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/pydext/Release/pydext.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/C和C++扩展/pydext/pydext/Release/pydext.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/pydext/Release/pydext.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/C和C++扩展/pydext/pydext/Release/pydext.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/pydext/Release/pydext.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/C和C++扩展/pydext/pydext/Release/pydext.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/pydext/Release/pydext.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/C和C++扩展/pydext/pydext/Release/pydext.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/pydext/Release/pydext.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/C和C++扩展/pydext/pydext/Release/pydext.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/pydext/Release/pydext.tlog/pydext.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.16299.0 2 | Release|Win32|F:\Python\Github\PyQt\C和C++扩展\pydext\| 3 | -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/pydext/Release/pydext.tlog/pydext.write.1u.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/C和C++扩展/pydext/pydext/Release/pydext.tlog/pydext.write.1u.tlog -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/pydext/Release/vc141.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/C和C++扩展/pydext/pydext/Release/vc141.pdb -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/pydext/build.bat: -------------------------------------------------------------------------------- 1 | cd %~dp0 2 | 3 | python setup.py build 4 | 5 | pause -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/pydext/pydext.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/C和C++扩展/pydext/pydext/pydext.c -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/pydext/setup.py: -------------------------------------------------------------------------------- 1 | from distutils.core import setup, Extension 2 | 3 | module = Extension('pydext', sources=['pydext.c']) 4 | 5 | setup(name='pydext', 6 | version='1.0.0', 7 | description='This is pydext', 8 | ext_modules=[module]) 9 | -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/pydext/test.py: -------------------------------------------------------------------------------- 1 | import sys 2 | 3 | sys.path.insert(0, 4 | './build/lib.{0}-{1}.{2}'.format(sys.platform, sys.version_info.major, 5 | sys.version_info.minor)) 6 | 7 | import pydext 8 | 9 | print(pydext) 10 | print(dir(pydext)) 11 | 12 | print(pydext.__author__) 13 | print(pydext.__mail__) 14 | 15 | print(pydext.hello()) 16 | 17 | print(pydext.hello2('Irony')) 18 | 19 | print(pydext.sum(1, 5)) 20 | 21 | # 结果变负数 22 | print(pydext.sum(1, 5, minus=True)) 23 | -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/pydext/说明.txt: -------------------------------------------------------------------------------- 1 | 该目录下的setup.py是在vs编译环境的cmd下调用build.bat进行编译生成build文件夹。然后执行python test.py 对build文件夹中的pyd进行测试 -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/test.py: -------------------------------------------------------------------------------- 1 | import sys 2 | 3 | sys.path.insert(0, './Release') 4 | 5 | import pydext 6 | 7 | print(pydext) 8 | print(dir(pydext)) 9 | 10 | print(pydext.__author__) 11 | print(pydext.__mail__) 12 | 13 | print(pydext.hello()) 14 | 15 | print(pydext.hello2('Irony')) 16 | 17 | print(pydext.sum(1, 5)) 18 | 19 | # 结果变负数 20 | print(pydext.sum(1, 5, minus=True)) 21 | -------------------------------------------------------------------------------- /Test/C和C++扩展/pydext/说明.txt: -------------------------------------------------------------------------------- 1 | 该目录的test.py是用vs打开pydext.sln编译后生成的Release文件夹里的pyd进行测试 -------------------------------------------------------------------------------- /Test/C和C++扩展/pyx和c++/CalSpecSpeaLib.h: -------------------------------------------------------------------------------- 1 | double maxabs(double num[], int len); 2 | bool isALLvaluezero(double num[], int len); 3 | void cal_spec_accel(double acc[], int len, double dt, double maxPeriod, double periodStep, double dampRatio, double *Period, double *Fre, double *MAcc, double *MVel, double *MDis, int numt); -------------------------------------------------------------------------------- /Test/C和C++扩展/pyx和c++/build.bat: -------------------------------------------------------------------------------- 1 | cd %~dp0 2 | 3 | python setup.py build 4 | 5 | python test.py 6 | 7 | pause -------------------------------------------------------------------------------- /Test/C和C++扩展/pyx和c++/setup.py: -------------------------------------------------------------------------------- 1 | from distutils.core import setup, Extension 2 | 3 | import numpy 4 | from Cython.Distutils import build_ext 5 | 6 | setup( 7 | cmdclass={'build_ext': build_ext}, 8 | ext_modules=[Extension("CalSpecSpea", sources=[ 9 | "CalSpecSpea.pyx", "CalSpecSpeaLib.cpp"], language="c++", include_dirs=[numpy.get_include()])] 10 | ) 11 | -------------------------------------------------------------------------------- /Test/C和C++扩展/py转pyd/build.bat: -------------------------------------------------------------------------------- 1 | cd %~dp0 2 | 3 | python setup.py build 4 | 5 | python test.py 6 | 7 | pause -------------------------------------------------------------------------------- /Test/C和C++扩展/py转pyd/pydmod.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | 4 | """ 5 | Created on 2018年5月6日 6 | @author: Irony 7 | @site: https://pyqt.site , https://github.com/PyQt5 8 | @email: 892768447@qq.com 9 | @file: 10 | @description: 11 | """ 12 | 13 | 14 | def sum(x, y): 15 | return x + y 16 | -------------------------------------------------------------------------------- /Test/C和C++扩展/py转pyd/setup.py: -------------------------------------------------------------------------------- 1 | from distutils.core import setup, Extension 2 | 3 | from Cython.Distutils import build_ext 4 | 5 | setup( 6 | cmdclass={'build_ext': build_ext}, 7 | ext_modules=[Extension("pydmod", sources=["pydmod.py"])] 8 | ) 9 | -------------------------------------------------------------------------------- /Test/C和C++扩展/py转pyd/test.py: -------------------------------------------------------------------------------- 1 | import sys 2 | 3 | sys.path.insert(0, 4 | './build/lib.{0}-{1}.{2}'.format(sys.platform, sys.version_info.major, 5 | sys.version_info.minor)) 6 | 7 | import pydmod 8 | 9 | print(pydmod) 10 | print(pydmod.sum(1, 5)) 11 | -------------------------------------------------------------------------------- /Test/Network/控制小车/ScreenShot/控制小车.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/Network/控制小车/ScreenShot/控制小车.png -------------------------------------------------------------------------------- /Test/Network/窗口配合异步Http/ScreenShot/窗口配合异步Http.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/Network/窗口配合异步Http/ScreenShot/窗口配合异步Http.gif -------------------------------------------------------------------------------- /Test/Network/窗口配合异步Http/requirements.txt: -------------------------------------------------------------------------------- 1 | quamash -------------------------------------------------------------------------------- /Test/ScreenShot/ButtomZoom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/ScreenShot/ButtomZoom.gif -------------------------------------------------------------------------------- /Test/WigglyWidget/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.14) 2 | 3 | project(WigglyWidget LANGUAGES CXX) 4 | 5 | add_subdirectory(LibWigglyWidget) 6 | add_subdirectory(TestWigglyWidget) 7 | add_subdirectory(PyQtWrapper) 8 | add_subdirectory(PySideWrapper) 9 | -------------------------------------------------------------------------------- /Test/WigglyWidget/PyQtWrapper/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.14) 2 | 3 | project(PyQtWrapper) 4 | -------------------------------------------------------------------------------- /Test/WigglyWidget/PyQtWrapper/requirements.txt: -------------------------------------------------------------------------------- 1 | PyQt5 2 | PyQt6 3 | sip 4 | PyQt5-sip 5 | PyQt6-sip 6 | PyQt-builder 7 | -------------------------------------------------------------------------------- /Test/WigglyWidget/PyQtWrapper/sip/WigglyWidget/WigglyWidget.sip: -------------------------------------------------------------------------------- 1 | class WigglyWidget : QWidget 2 | { 3 | %TypeHeaderCode 4 | #include "wigglywidget.h" 5 | %End 6 | 7 | public: 8 | WigglyWidget(QWidget *parent /TransferThis/ = 0); 9 | 10 | public slots: 11 | void setText(const QString &newText); 12 | 13 | protected: 14 | virtual void paintEvent(QPaintEvent *); 15 | virtual void timerEvent(QTimerEvent *); 16 | }; 17 | -------------------------------------------------------------------------------- /Test/WigglyWidget/PyQtWrapper/sip/WigglyWidget/WigglyWidgetmod.sip: -------------------------------------------------------------------------------- 1 | %Module(name=WigglyWidget, keyword_arguments="Optional", use_limited_api=True) 2 | 3 | 4 | %Import QtCore/QtCoremod.sip 5 | %Import QtWidgets/QtWidgetsmod.sip 6 | 7 | %DefaultSupertype sip.simplewrapper 8 | 9 | %Include WigglyWidget.sip 10 | -------------------------------------------------------------------------------- /Test/WigglyWidget/PySideWrapper/bindings.h: -------------------------------------------------------------------------------- 1 | #ifndef BINDINGS_H 2 | #define BINDINGS_H 3 | #include "wigglywidget.h" 4 | #endif // BINDINGS_H 5 | -------------------------------------------------------------------------------- /Test/WigglyWidget/PySideWrapper/bindings.txt.in: -------------------------------------------------------------------------------- 1 | [generator-project] 2 | generator-set = shiboken 3 | header-file = ${BINDINGS_HEADER_FILE} 4 | typesystem-file = ${BINDINGS_TYPESYSTEM_FILE} 5 | output-directory = ${BINDINGS_OUTPUT_DIR} 6 | include-path = ${BINDINGS_INCLUDE_PATH} 7 | framework-include-paths = 8 | typesystem-paths = ${BINDINGS_TYPESYSTEM_PATH} 9 | 10 | enable-parent-ctor-heuristic 11 | enable-pyside-extensions 12 | enable-return-value-heuristic 13 | use-isnull-as-nb_nonzero 14 | -------------------------------------------------------------------------------- /Test/WigglyWidget/PySideWrapper/bindings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Test/WigglyWidget/PySideWrapper/generated.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/WigglyWidget/PySideWrapper/generated.bat -------------------------------------------------------------------------------- /Test/WigglyWidget/PySideWrapper/generated.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/WigglyWidget/PySideWrapper/generated.sh -------------------------------------------------------------------------------- /Test/WigglyWidget/README.md: -------------------------------------------------------------------------------- 1 | # WigglyWidget 2 | 3 | ## Build 4 | 5 | Windows 6 | 7 | 1. 使用 `QtCreator` 打开项目 `CMakeLists.txt`,勾选对应的Qt版本。 8 | 2. 在 `QtCreator` 中通过 `项目`->`构建`->`构建步骤`->`详情` 里勾选 `all` 和 `install` 9 | 3. 进入 `PyQtWrapper` 目录,打开`vs cmd`,运行 `python -m pip install -r requirements.txt` 10 | 4. `sip-build --verbose --tracing --qmake=你的Qt目录下的qmake.exe路径`,等待编译完成 11 | 5. `python TestWigglyWidget.py` 进行测试 -------------------------------------------------------------------------------- /Test/WigglyWidget/TestWigglyWidget/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "wigglywidget.h" 4 | 5 | int main(int argc, char *argv[]) { 6 | QApplication a(argc, argv); 7 | WigglyWidget w; 8 | w.setText("pyqt.site"); 9 | w.show(); 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /Test/partner_625781186/1.exec动态生成控件/dynamic_Menu/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/1.exec动态生成控件/dynamic_Menu/__init__.py -------------------------------------------------------------------------------- /Test/partner_625781186/1.exec动态生成控件/dynamic_Menu/动态控件.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Dialog 4 | 5 | 6 | 7 | 0 8 | 0 9 | 370 10 | 403 11 | 12 | 13 | 14 | Dialog 15 | 16 | 17 | true 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Test/partner_625781186/1.exec动态生成控件/dynamic_button/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/1.exec动态生成控件/dynamic_button/__init__.py -------------------------------------------------------------------------------- /Test/partner_625781186/1.exec动态生成控件/dynamic_button/动态控件.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Dialog 4 | 5 | 6 | 7 | 0 8 | 0 9 | 370 10 | 403 11 | 12 | 13 | 14 | Dialog 15 | 16 | 17 | true 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Test/partner_625781186/1.exec动态生成控件/动态生成控件.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/1.exec动态生成控件/动态生成控件.docx -------------------------------------------------------------------------------- /Test/partner_625781186/12.1拖拽显示为图片/README.md: -------------------------------------------------------------------------------- 1 | # 12.1拖拽显示为图片 2 | 3 | 4 | ![1](ScreenShot/1.gif) -------------------------------------------------------------------------------- /Test/partner_625781186/12.1拖拽显示为图片/ScreenShot/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/12.1拖拽显示为图片/ScreenShot/1.gif -------------------------------------------------------------------------------- /Test/partner_625781186/12.1拖拽显示为图片/if_Cursor_drag_arrow_103039.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/12.1拖拽显示为图片/if_Cursor_drag_arrow_103039.png -------------------------------------------------------------------------------- /Test/partner_625781186/13.combo_listwidget/README.md: -------------------------------------------------------------------------------- 1 | # comboxBox 自定义下拉 2 | 3 | 4 | ![1](ScreenShot/1.gif) -------------------------------------------------------------------------------- /Test/partner_625781186/13.combo_listwidget/ScreenShot/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/13.combo_listwidget/ScreenShot/1.gif -------------------------------------------------------------------------------- /Test/partner_625781186/14.多进程爬虫/README.md: -------------------------------------------------------------------------------- 1 | # QWebEngineView 开启控制台 2 | 3 | 需要在 设置环境变量 , 并在浏览器中访问 , 因为访问的是网页 ,并且扩展工具选择页面元素 会加一个 动态高亮的样式类 , 所以可以用这个方法 来获取页面 元素的html相关属性元素。 4 | 5 | ```python 6 | if __name__ == "__main__": 7 | ... 8 | 9 | import os 10 | os.environ["QTWEBENGINE_REMOTE_DEBUGGING"] = "9000" 11 | 12 | ... 13 | 14 | ``` 15 | 16 | ![1](ScreenShot/1.gif) -------------------------------------------------------------------------------- /Test/partner_625781186/14.多进程爬虫/ScreenShot/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/14.多进程爬虫/ScreenShot/1.gif -------------------------------------------------------------------------------- /Test/partner_625781186/14.多进程爬虫/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/14.多进程爬虫/__init__.py -------------------------------------------------------------------------------- /Test/partner_625781186/14.多进程爬虫/icons/add_page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/14.多进程爬虫/icons/add_page.png -------------------------------------------------------------------------------- /Test/partner_625781186/14.多进程爬虫/icons/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/14.多进程爬虫/icons/back.png -------------------------------------------------------------------------------- /Test/partner_625781186/14.多进程爬虫/icons/clipboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/14.多进程爬虫/icons/clipboard.png -------------------------------------------------------------------------------- /Test/partner_625781186/14.多进程爬虫/icons/cross.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/14.多进程爬虫/icons/cross.png -------------------------------------------------------------------------------- /Test/partner_625781186/14.多进程爬虫/icons/lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/14.多进程爬虫/icons/lock.png -------------------------------------------------------------------------------- /Test/partner_625781186/14.多进程爬虫/icons/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/14.多进程爬虫/icons/next.png -------------------------------------------------------------------------------- /Test/partner_625781186/14.多进程爬虫/icons/penguin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/14.多进程爬虫/icons/penguin.png -------------------------------------------------------------------------------- /Test/partner_625781186/14.多进程爬虫/icons/question.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/14.多进程爬虫/icons/question.png -------------------------------------------------------------------------------- /Test/partner_625781186/14.多进程爬虫/icons/renew.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/14.多进程爬虫/icons/renew.png -------------------------------------------------------------------------------- /Test/partner_625781186/14.多进程爬虫/icons/save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/14.多进程爬虫/icons/save.png -------------------------------------------------------------------------------- /Test/partner_625781186/15_Plugins/PluginManager/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | 插件的加载 , 重载 , 卸载模块 , 配置文件模块. 4 | """ 5 | -------------------------------------------------------------------------------- /Test/partner_625781186/15_Plugins/Plugins/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | 插件搜索目录. 4 | """ 5 | -------------------------------------------------------------------------------- /Test/partner_625781186/15_Plugins/Plugins/page1/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/15_Plugins/Plugins/page1/__init__.py -------------------------------------------------------------------------------- /Test/partner_625781186/15_Plugins/Plugins/page2/PluginPage2.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Form 6 | 7 | 8 | 9 | 0 10 | 0 11 | 400 12 | 300 13 | 14 | 15 | 16 | Form 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Test/partner_625781186/15_Plugins/Plugins/page2/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/15_Plugins/Plugins/page2/__init__.py -------------------------------------------------------------------------------- /Test/partner_625781186/15_Plugins/Tools/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | 增删改查建json. 4 | """ 5 | -------------------------------------------------------------------------------- /Test/partner_625781186/15_Plugins/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/15_Plugins/__init__.py -------------------------------------------------------------------------------- /Test/partner_625781186/16_sqlModel/01_mapper/README.md: -------------------------------------------------------------------------------- 1 | # QDataWidgetMapper 数据库绑定 QLineEdit控件 2 | 3 | ### 注意: 表格里的数据修改 还没有提交到数据库 , 需要点击提交按钮才生效. 4 | 5 | ![1](ScreenShot/1.gif) 6 | -------------------------------------------------------------------------------- /Test/partner_625781186/16_sqlModel/01_mapper/ScreenShot/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/16_sqlModel/01_mapper/ScreenShot/1.gif -------------------------------------------------------------------------------- /Test/partner_625781186/16_sqlModel/01_mapper/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/16_sqlModel/01_mapper/__init__.py -------------------------------------------------------------------------------- /Test/partner_625781186/16_sqlModel/01_mapper/db/database.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/16_sqlModel/01_mapper/db/database.db -------------------------------------------------------------------------------- /Test/partner_625781186/17_打印预览qwebengineview/README.md: -------------------------------------------------------------------------------- 1 | ### 17 QWebEngineView + QPrintPreviewDialog 2 | 3 | Preview QWebEngineView.page() in QPrintPreviewDialog and print them authentically . 4 | 5 | 6 | ![1](ScreenShot/1.jpg) -------------------------------------------------------------------------------- /Test/partner_625781186/17_打印预览qwebengineview/ScreenShot/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/17_打印预览qwebengineview/ScreenShot/1.jpg -------------------------------------------------------------------------------- /Test/partner_625781186/2.折叠控件/ScreenShot/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/2.折叠控件/ScreenShot/2.gif -------------------------------------------------------------------------------- /Test/partner_625781186/2.折叠控件/readme.md: -------------------------------------------------------------------------------- 1 | # 动画 与 布局 2 | 3 | ![截图2](ScreenShot/2.gif) -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/Documentation/README-5.hoverMenu.Tools.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5.hoverMenu.Tools 4 | 5 | 8 | 9 | 10 |

5.hoverMenu.Tools

11 | 12 | 13 | 14 |

Modules

15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
CommonHelper读取CSS用模块。
qmf_showErrorCreated on 2018-09-09
24 | -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/Documentation/README-5.hoverMenu.U_FuncWidget.UCompetitiveProduct2.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5.hoverMenu.U_FuncWidget.UCompetitiveProduct2 4 | 5 | 8 | 9 | 10 |

5.hoverMenu.U_FuncWidget.UCompetitiveProduct2

11 | 12 | 13 | 14 |

Modules

15 | 16 | 17 | 18 | 19 | 20 |
SKU_WidgetSKU分析菜单的界面。
21 | -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/Documentation/README-5.hoverMenu.U_FuncWidget.UMarketAnalysis3.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5.hoverMenu.U_FuncWidget.UMarketAnalysis3 4 | 5 | 8 | 9 | 10 |

5.hoverMenu.U_FuncWidget.UMarketAnalysis3

11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/Documentation/README-5.hoverMenu.U_FuncWidget.UStoreData1.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5.hoverMenu.U_FuncWidget.UStoreData1 4 | 5 | 8 | 9 | 10 |

5.hoverMenu.U_FuncWidget.UStoreData1

11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/Documentation/README-5.hoverMenu.U_FuncWidget.UThroughTrain4.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5.hoverMenu.U_FuncWidget.UThroughTrain4 4 | 5 | 8 | 9 | 10 |

5.hoverMenu.U_FuncWidget.UThroughTrain4

11 | 12 | 13 | 14 |

Modules

15 | 16 | 17 | 18 | 19 | 20 |
GeographicAnalysis_WidgetModule implementing GeographicAnalysis_Form.
21 | -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/Documentation/README-5.hoverMenu.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5.hoverMenu 4 | 5 | 8 | 9 | 10 |

5.hoverMenu

11 | 12 | 13 |

Packages

14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
Tools
U_FuncWidget
23 | 24 |

Modules

25 | 26 | 27 | 28 | 29 | 30 |
Main主函数.
31 | -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/Documentation/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | Table of contents 4 | 5 | 8 | 9 | 10 |

Table of contents

11 | 12 | 13 |

Packages

14 | 15 | 16 | 17 | 18 | 19 |
hoverMenu
20 | 21 | -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/ScreenShot/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/ScreenShot/2.gif -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/Tools/CommonHelper.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | ''' 3 | 读取CSS用模块。 4 | ''' 5 | class CommonHelper : 6 | 7 | def __init__(self ) : 8 | pass 9 | 10 | @staticmethod 11 | def readQss( style): 12 | with open( style , 'r') as f: 13 | return f.read() 14 | 15 | -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/Tools/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/Tools/__init__.py -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/U_FuncWidget/UCompetitiveProduct2/__init__.py: -------------------------------------------------------------------------------- 1 | """自定义界面.""" -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/U_FuncWidget/UMarketAnalysis3/__init__.py: -------------------------------------------------------------------------------- 1 | """自定义界面.""" -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/U_FuncWidget/UStoreData1/__init__.py: -------------------------------------------------------------------------------- 1 | """自定义界面.""" -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/U_FuncWidget/UThroughTrain4/__init__.py: -------------------------------------------------------------------------------- 1 | """自定义界面.""" -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/U_FuncWidget/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | 添加功能及自定义界面. 3 | """ -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/__init__.py -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/static/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/static/background.jpg -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/static/competitiveProductAnalysis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/static/competitiveProductAnalysis.png -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/static/download.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/static/download.jpg -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/static/drillTools.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/static/drillTools.png -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/static/exit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/static/exit.png -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/static/finance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/static/finance.png -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/static/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/static/icon.ico -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/static/information.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/static/information.png -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/static/login.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/static/login.jpg -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/static/marketAnalysis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/static/marketAnalysis.png -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/static/microAmoy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/static/microAmoy.png -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/static/password.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/static/password.png -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/static/register.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/static/register.jpg -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/static/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/static/search.png -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/static/store_data.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/static/store_data.png -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/static/taobaoLogin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/static/taobaoLogin.png -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/static/taobaoLogin_title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/static/taobaoLogin_title.png -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/static/throughTrain.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/static/throughTrain.png -------------------------------------------------------------------------------- /Test/partner_625781186/5.hoverMenu/static/username_headers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/5.hoverMenu/static/username_headers.png -------------------------------------------------------------------------------- /Test/partner_625781186/6.QWebEngineView下载文件/ScreenShot/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/6.QWebEngineView下载文件/ScreenShot/1.png -------------------------------------------------------------------------------- /Test/partner_625781186/6.QWebEngineView下载文件/readme.md: -------------------------------------------------------------------------------- 1 | # QWebEngineView下载文件 2 | 3 | ## QT官方自带例子 - 额 官方上没有 ,在本地 Examples\Qt-5.9.1\webenginewidgets\demobrowser 文件夹下。 4 | 5 | ![截图2](ScreenShot/1.png) 6 | 7 | #QWebEngineView的下载请求信号 8 | QWebEngineView().page().profile().downloadRequested.connect(self.on_downloadRequested) 9 | 10 | #QWebEngineDownloadItem 11 | 下载过程的信号 12 | QWebEngineDownloadItem().downloadProgress.connect(self._downloadProgress) 13 | 下载结束的信号 14 | QWebEngineDownloadItem().finished.connect(self._finished) 15 | 16 | ## 参考文献 17 | https://stackoverflow.com/questions/50164712/how-to-open-download-file-dialog-with-qwebengineview-on-pyqt5 18 | https://stackoverflow.com/questions/38812787/how-to-handle-downloads-in-qwebengine 19 | -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QDialog中嵌入qml窗体并缩放/ScreenShot/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QDialog中嵌入qml窗体并缩放/ScreenShot/2.gif -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QDialog中嵌入qml窗体并缩放/_eric6project/py_qml.e4q: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QDialog中嵌入qml窗体并缩放/_eric6project/py_qml.e6t: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QDialog中嵌入qml窗体并缩放/py_mqltest.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QDialog中嵌入qml窗体并缩放/py_mqltest.qmlc -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QDialog中嵌入qml窗体并缩放/readme.md: -------------------------------------------------------------------------------- 1 | # QDialog中嵌入QML界面并缩放控件 2 | 3 | 使用 QQuickWidget()和QQuickView 嵌入的话.qml文件根节点不能为 Window 和ApplicationWindow, 4 | 只能为 Rectangle 或Item。 5 | 见 [QMainWindow中嵌入QML ApplicationWindow界面并缩放控件](../QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上) 6 | 7 | ![截图2](ScreenShot/2.gif) -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/ScreenShot/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/ScreenShot/2.gif -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/__init__.py -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/doc/images/qtquickcontrols2-gallery-drawer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/doc/images/qtquickcontrols2-gallery-drawer.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/doc/images/qtquickcontrols2-gallery-menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/doc/images/qtquickcontrols2-gallery-menu.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/doc/images/qtquickcontrols2-gallery-welcome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/doc/images/qtquickcontrols2-gallery-welcome.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/back.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/back@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/back@2x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/back@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/back@3x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/back@4x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/back@4x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/drawer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/drawer.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/drawer@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/drawer@2x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/drawer@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/drawer@3x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/drawer@4x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/drawer@4x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/menu.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/menu@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/menu@2x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/menu@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/menu@3x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/menu@4x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/+material/menu@4x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/arrow.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/arrow@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/arrow@2x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/arrow@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/arrow@3x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/arrow@4x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/arrow@4x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/arrows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/arrows.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/arrows@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/arrows@2x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/arrows@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/arrows@3x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/arrows@4x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/arrows@4x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/back.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/back@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/back@2x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/back@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/back@3x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/back@4x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/back@4x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/drawer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/drawer.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/drawer@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/drawer@2x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/drawer@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/drawer@3x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/drawer@4x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/drawer@4x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/menu.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/menu@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/menu@2x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/menu@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/menu@3x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/menu@4x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/menu@4x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/qt-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/qt-logo.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/qt-logo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/qt-logo@2x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/qt-logo@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/qt-logo@3x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/qt-logo@4x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/images/qt-logo@4x.png -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/BusyIndicatorPage.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/BusyIndicatorPage.qmlc -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/ButtonPage.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/ButtonPage.qmlc -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/DialPage.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/DialPage.qmlc -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/ScrollIndicatorPage.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/ScrollIndicatorPage.qmlc -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/ScrollablePage.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/ScrollablePage.qmlc -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/SliderPage.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/SliderPage.qmlc -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/StackViewPage.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/StackViewPage.qmlc -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/SwitchPage.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/SwitchPage.qmlc -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/TextAreaPage.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/TextAreaPage.qmlc -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/TumblerPage.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/pages/TumblerPage.qmlc -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/py_mqltest.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/py_mqltest.qmlc -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/QQmlApplicationEngine之qml嵌入qtwidget_qt5.8以上/readme.md: -------------------------------------------------------------------------------- 1 | # QMainWindow中嵌入QML ApplicationWindow界面并缩放控件 2 | 3 | - 暂时只适用于5.8版本 , 5.9及以上界面会漂移 ; 5.8以下 python导入Qt.labs.controls 1.0 会报错。 4 | - 使用 QQuickWidget()和QQuickView 嵌入的话.qml文件根节点不能为 Window 和ApplicationWindow , 只能为 Rectangle 或Item。 5 | - QQmlApplicationEngine 支持 Window 和ApplicationWindow 。 6 | - py_mqltest1.qml 文件为测试文件 , 如果py_mqltest1.qml文件报错, 7 | 可将py_mqltest1.qml更名为py_mqltest1.qml进行测试。 8 | 9 | ![截图2](ScreenShot/2.gif) -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/0-参考教程.txt: -------------------------------------------------------------------------------- 1 | http://blog.csdn.net/eric6_17/article/details/71622951 2 | 3 | http://www.cnblogs.com/hhh5460/p/4237863.html -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/1-QML显式的调用Python函数,无返回值/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/1-QML显式的调用Python函数,无返回值/1.jpg -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/1-QML显式的调用Python函数,无返回值/test.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.0 2 | 3 | Rectangle { 4 | width: 320; height: 240 5 | color: "lightblue" 6 | Text { 7 | id: txt 8 | text: "Clicked me" 9 | font.pixelSize: 20 10 | anchors.centerIn: parent 11 | } 12 | MouseArea { 13 | id: mouse_area 14 | anchors.fill: parent // 有效区域 15 | onClicked: { 16 | con.outputString("Hello, Python3") //QML显式的调用Python函数 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/1-QML显式的调用Python函数,无返回值/test.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/1-QML显式的调用Python函数,无返回值/test.qmlc -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/2-QML显式的调用Python函数,有返回值/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/2-QML显式的调用Python函数,有返回值/2.jpg -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/2-QML显式的调用Python函数,有返回值/test2.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.0 2 | 3 | Rectangle { 4 | id: root 5 | width: 320; height: 240 6 | color: "lightgray" 7 | Text { 8 | id: txt 9 | text: "Clicked me" 10 | font.pixelSize: 20 11 | anchors.centerIn: parent 12 | } 13 | Text { 14 | id: txt1 15 | text: "..." 16 | font.pixelSize: 20 17 | } 18 | MouseArea { 19 | id: mouse_area 20 | anchors.fill: parent // 有效区域 21 | onClicked: { 22 | console.log("test...") // 控制台打印信息 23 | txt1.text = con.returnValue(20) //QML显式的调用Python函数 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/2-QML显式的调用Python函数,有返回值/test2.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/2-QML显式的调用Python函数,有返回值/test2.qmlc -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/3-QML连接信号到Python/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/3-QML连接信号到Python/3.jpg -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/3-QML连接信号到Python/test3.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.0 2 | 3 | Rectangle { 4 | id: root 5 | width: 320; height: 240 6 | color: "lightgray" 7 | signal sendClicked(string str) // 定义信号 8 | 9 | Text { 10 | id: txt 11 | text: "Clicked me" 12 | font.pixelSize: 20 13 | anchors.centerIn: parent 14 | } 15 | MouseArea { 16 | id: mouse_area 17 | anchors.fill: parent //有效区域 18 | onClicked: { 19 | root.sendClicked("Hello, Python3")//发射信号到Python 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/3-QML连接信号到Python/test3.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/3-QML连接信号到Python/test3.qmlc -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/4-Python调用QML函数/qml-test4.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | ''' 3 | (4)Python调用QML函数 4 | 5 | QML中创建一个函数, 6 | 7 | Python中创建一个rootObject对象,并连接这个函数, 8 | 9 | 例子中,每隔1s,指针会旋转45 deg;。 10 | ''' 11 | from PyQt5.QtCore import QUrl, QTimer 12 | from PyQt5.QtGui import QGuiApplication 13 | from PyQt5.QtQuick import QQuickView 14 | 15 | if __name__ == '__main__': 16 | path = 'test4.qml' # 加载的QML文件 17 | 18 | app = QGuiApplication([]) 19 | view = QQuickView() 20 | view.engine().quit.connect(app.quit) 21 | view.setSource(QUrl(path)) 22 | view.show() 23 | 24 | timer = QTimer() 25 | timer.start(2000) 26 | root = view.rootObject() 27 | timer.timeout.connect(root.updateRotater) # 调用QML函数 28 | 29 | app.exec_() 30 | -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/4-Python调用QML函数/test4.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.0 2 | 3 | Rectangle { 4 | id: page 5 | width: 500; height: 200 6 | color: "lightgray" 7 | 8 | function updateRotater() {// 定义函数 9 | rotater.angle += 5 10 | } 11 | 12 | Rectangle { 13 | id: rotater 14 | property real angle : 0 15 | x: 240; y: 95 16 | width: 100; height: 5 17 | color: "black" 18 | 19 | transform: Rotation { 20 | origin.x: 10; origin.y: 5 21 | angle: rotater.angle 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/4-Python调用QML函数/test4.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/4-Python调用QML函数/test4.qmlc -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/5-信号、槽 机制/test5.qml: -------------------------------------------------------------------------------- 1 | import Charts 1.0 2 | import QtQuick 2.0 3 | 4 | Item { 5 | width: 300; height: 200 6 | 7 | PieChart { 8 | id: aPieChart 9 | anchors.centerIn: parent 10 | width: 100; height: 100 11 | color: "red" 12 | 13 | onChartCleared: console.log("The chart has been cleared") //? 14 | } 15 | 16 | MouseArea { 17 | anchors.fill: parent 18 | onClicked: aPieChart.clearChart() 19 | } 20 | 21 | Text { 22 | anchors { bottom: parent.bottom; horizontalCenter: parent.horizontalCenter; bottomMargin: 20 } 23 | text: "Click anywhere to clear the chart" 24 | } 25 | } -------------------------------------------------------------------------------- /Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/5-信号、槽 机制/test5.qmlc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/partner_625781186/QML_QtQuick_PY/python_QML调用基础/5-信号、槽 机制/test5.qmlc -------------------------------------------------------------------------------- /Test/全局热键/README.md: -------------------------------------------------------------------------------- 1 | # PyQt全局热键 For Windows Test 2 | 3 | pip install keyboard 4 | 5 | https://github.com/892768447/keyboard 6 | 7 | * keyboard 8 | * 该模块使用全局低级钩子的方式hook键盘来处理,对系统有一定的影响 9 | * 有反映说弹出对话框假死,这里粗略解决下使用信号槽的方式来弹出对话框 10 | * 该模块里使用了每次产生一个子线程来回调函数 11 | ``` 12 | def call_later(fn, args=(), delay=0.001): 13 | """ 14 | Calls the provided function in a new thread after waiting some time. 15 | Useful for giving the system some time to process an event, without blocking 16 | the current execution flow. 17 | """ 18 | thread = _Thread(target=lambda: (_time.sleep(delay), fn(*args))) 19 | thread.start() 20 | ``` 21 | 22 | # 截图 23 | ![截图](ScreenShot/1.gif) -------------------------------------------------------------------------------- /Test/全局热键/ScreenShot/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/全局热键/ScreenShot/1.gif -------------------------------------------------------------------------------- /Test/全局热键/requirements.txt: -------------------------------------------------------------------------------- 1 | keyboard -------------------------------------------------------------------------------- /Test/自动更新/README.md: -------------------------------------------------------------------------------- 1 | # 自动更新 2 | 3 | - dist/mylibs1.zip 为版本一的文件 4 | - dist/mylibs2.zip 为版本二的文件 5 | 6 | 运行演示后,再次演示。需要把mylibs1.zip中的文件解压出来替换 -------------------------------------------------------------------------------- /Test/自动更新/mylibs/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/自动更新/mylibs/__init__.py -------------------------------------------------------------------------------- /Test/自动更新/mylibs/testlibs.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | 4 | """ 5 | Created on 2017年5月7日 6 | @author: Irony 7 | @site: https://pyqt.site , https://github.com/PyQt5 8 | @email: 892768447@qq.com 9 | @file: 自动更新.mylibs.testlibs 10 | @description: 11 | """ 12 | 13 | 14 | def version(): 15 | return "0.0.1" 16 | 17 | 18 | def test(): 19 | print("version: 0.0.1") 20 | -------------------------------------------------------------------------------- /Test/自动更新/编译.bat: -------------------------------------------------------------------------------- 1 | cd %~dp0 2 | py -3.4 setup.py py2exe 3 | pause -------------------------------------------------------------------------------- /Test/自定义import/README.md: -------------------------------------------------------------------------------- 1 | # 自定义import 2 | 需要Python3.5.2(或者自行编译xxtea) 3 | 4 | 简单的了解了下import的原理 5 | 6 | # 测试过程 7 | - 1.在src中编写一个test.py 8 | - 2.通过build.py 利用xxtea加密src/test.py 到当前目录的test.irony文件 9 | - 3.运行main.py 进行测试 10 | 11 | # 截图 12 | test.py 13 | 14 | ![test.py](ScreenShot/1.png) 15 | 16 | test.irony 17 | 18 | ![test.irony](ScreenShot/2.png) 19 | 20 | main.py 21 | 22 | ![main.py](ScreenShot/3.png) -------------------------------------------------------------------------------- /Test/自定义import/ScreenShot/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/自定义import/ScreenShot/1.png -------------------------------------------------------------------------------- /Test/自定义import/ScreenShot/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/自定义import/ScreenShot/2.png -------------------------------------------------------------------------------- /Test/自定义import/ScreenShot/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/自定义import/ScreenShot/3.png -------------------------------------------------------------------------------- /Test/自定义import/build.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | 4 | """ 5 | Created on 2018年1月28日 6 | @author: Irony 7 | @site: https://pyqt.site , https://github.com/PyQt5 8 | @email: 892768447@qq.com 9 | @file: build 10 | @description: 11 | """ 12 | 13 | import base64 14 | 15 | import xxtea # @UnresolvedImport 16 | 17 | KEY = base64.b85decode("HF5^hbNbOVOKM=(SB`7h") 18 | 19 | with open("src/test.py", "rb") as fi: 20 | open("test.irony", "wb").write(xxtea.encrypt(fi.read(), KEY)) 21 | print("ok") 22 | -------------------------------------------------------------------------------- /Test/自定义import/main.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | 4 | """ 5 | Created on 2018年1月28日 6 | @author: Irony 7 | @site: https://pyqt.site , https://github.com/PyQt5 8 | @email: 892768447@qq.com 9 | @file: main 10 | @description: 11 | """ 12 | 13 | # 首先要引入importer 14 | 15 | # 测试开始 16 | import test 17 | 18 | print(test) 19 | print(dir(test)) 20 | print(test.test(1, 5)) # @UndefinedVariable 21 | -------------------------------------------------------------------------------- /Test/自定义import/src/test.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | 4 | """ 5 | Created on 2018年1月28日 6 | @author: Irony 7 | @site: https://pyqt.site , https://github.com/PyQt5 8 | @email: 892768447@qq.com 9 | @file: test 10 | @description: 11 | """ 12 | 13 | 14 | def test(a, b): 15 | return a + b 16 | -------------------------------------------------------------------------------- /Test/自定义import/test.irony: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/自定义import/test.irony -------------------------------------------------------------------------------- /Test/自定义import/xxtea.pyd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PyQt5/PyQt/4bdb73f7993ee3fea799fa18c1916c8c8b80ff2b/Test/自定义import/xxtea.pyd --------------------------------------------------------------------------------