合集-PyQt5

摘要:实例1: from PyQt5.QtWidgets import QMessageBox, QListView, QStatusBar, QMenuBar, QMenu, QAction, QLineEdit, QStyle, QFormLayout, QVBoxLayout,QWidget,QAp 阅读全文
posted @ 2024-06-14 11:08 星空28 阅读(45) 评论(0) 推荐(0) 编辑
摘要:二维表 数据源 需要创建QTableView实例和一个数据源Model,然后将两者关联 MVC: Model + Viewer + Controller MVC的目的是将后端的数据和前端页面的耦合度降低 import sys from PyQt5 import QtPrintSupport, QtG 阅读全文
posted @ 2024-06-14 11:01 星空28 阅读(28) 评论(0) 推荐(0) 编辑
摘要:import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5 import QtPrintSupport, QtGui from PyQt5.QtPri 阅读全文
posted @ 2024-06-14 10:53 星空28 阅读(24) 评论(0) 推荐(0) 编辑
摘要:参考https://www.cnblogs.com/jgg54335/p/14904853.html 实例一: import sys from PyQt5.QtWidgets import QApplication, QWidget from PyQt5.QtGui import QPainter, 阅读全文
posted @ 2024-06-13 17:50 星空28 阅读(20) 评论(0) 推荐(0) 编辑
摘要:import sys from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtGui import * class FontDialogdemo(QWidget): def __init__(self, parent 阅读全文
posted @ 2024-06-13 17:25 星空28 阅读(7) 评论(0) 推荐(0) 编辑
摘要:import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * class InputdialogDemo(QWidget): def __init__(self, paren 阅读全文
posted @ 2024-06-13 17:18 星空28 阅读(11) 评论(0) 推荐(0) 编辑
摘要:import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * class QMessageBoxDemo(QWidget): def __init__(self): supe 阅读全文
posted @ 2024-06-13 15:49 星空28 阅读(35) 评论(0) 推荐(0) 编辑
摘要:import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * class QDialogDemo(QMainWindow): def __init__(self): supe 阅读全文
posted @ 2024-06-13 15:25 星空28 阅读(9) 评论(0) 推荐(0) 编辑
摘要:from PyQt5.QtWidgets import QApplication, QWidget, QStackedLayout, QVBoxLayout from PyQt5.QtWidgets import QPushButton, QComboBox, QSizePolicy import 阅读全文
posted @ 2024-06-13 09:23 星空28 阅读(106) 评论(0) 推荐(0) 编辑
摘要:import sys from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtGui import * class spindemo(QWidget): def __init__(self, parent=None) 阅读全文
posted @ 2024-06-13 07:05 星空28 阅读(15) 评论(0) 推荐(0) 编辑
摘要:import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * class QSliderDemo(QWidget): def __init__(self): super(QS 阅读全文
posted @ 2024-06-13 07:00 星空28 阅读(47) 评论(0) 推荐(0) 编辑
摘要:PyQtGraph绘图参考 http://v3.byhy.net/tut/py/gui/pyqtgraph-1/ 阅读全文
posted @ 2024-06-13 06:52 星空28 阅读(17) 评论(0) 推荐(0) 编辑
摘要:from PyQt5.QtWidgets import * import pyqtgraph as pg import sys class MainWindow(QWidget): def __init__(self): super().__init__() self.setWindowTitle( 阅读全文
posted @ 2024-06-13 06:45 星空28 阅读(60) 评论(0) 推荐(0) 编辑
摘要:from PyQt5.QtWidgets import * import pyqtgraph as pg import sys class MainWindow(QWidget): def __init__(self): super().__init__() self.setWindowTitle( 阅读全文
posted @ 2024-06-13 06:41 星空28 阅读(83) 评论(0) 推荐(0) 编辑
摘要:QFileDialog的介绍和使用 QFileDialog是Qt框架中提供的一个文件选择对话框。它可以让用户通过图形界面的方式选择文件或目录,并提供了许多与文件操作相关的实用功能,例如文件过滤、文件类型限制、文件名默认值、默认目录等。 它具有以下常用的静态方法: getOpenFileName(): 阅读全文
posted @ 2025-01-30 16:15 星空28 阅读(15) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示