1 import sys 2 from PyQt5.QtCore import * 3 from PyQt5.QtGui import * 4 from PyQt5.QtWidgets import * 5 6 class Form(QDialog): 7 def __init__(self): 8 ...
分类:
其他好文 时间:
2020-08-01 14:36:36
阅读次数:
125
本视频介绍如何使用 Python PyQt5 开发一款网盘软件 主要使用的PyQt5 控件包括: QtGui.QStandardItemModel QtWidgets.QTableView 完成列表控件的数据生成和绑定 视频播放地址 http://www.qt-ui.com//qttutorial/ ...
分类:
编程语言 时间:
2020-06-26 11:13:46
阅读次数:
108
#QLabel控件使用 from PyQt5.QtWidgets import QApplication,QLabel,QWidget,QVBoxLayout from PyQt5.QtCore import Qt from PyQt5.QtGui import QPixmap,QPalette i ...
分类:
Web程序 时间:
2020-06-18 11:15:15
阅读次数:
173
PyQt 模拟时钟 AnalogClock: from PyQt5 import QtGui, QtCore from PyQt5.QtCore import Qt from PyQt5.QtGui import QIcon from PyQt5.QtWidgets import QApplicat ...
分类:
其他好文 时间:
2020-06-13 21:37:25
阅读次数:
93
一、控件添加提示信息 将鼠标停在控件上,可以显示一个提示的信息。 需要引入: from PyQt5.QtWidgets import QToolTip 如果需要修改字体,则需要引入: from PyQt5.QtGui import QFont class MyWindow(QMainWindow): ...
分类:
编程语言 时间:
2020-06-12 17:28:37
阅读次数:
72
主要内容 在GUI添加小部件 布局小部件 Pyqt5的几种布局技术 位置部件布局 效果如图 代码如下 from PyQt5.QtWidgets import QApplication,QMainWindow,QAction from PyQt5.QtGui import QIcon from PyQ ...
分类:
编程语言 时间:
2020-06-07 19:38:19
阅读次数:
69
尝试用Qt5编译Qt4的工程,会遇到下面的问题: 错误: error: C1083: 无法打开包括文件: “QApplication”: No such file or directory 出现原因: Qt5里不再用QtGui模块,而是使用QtWidgets模块。 解决方法: 在.pro里加上QT ...
分类:
移动开发 时间:
2020-06-05 15:26:17
阅读次数:
56
1、问题描述opencv第一次编译时,报错GL/gl.h: No such file or directory错误信息如下: /home/wrj/anaconda3/include/qt/QtGui/qopengl.h:139:22: fatal error: GL/gl.h: 没有那个文件或目录 ...
分类:
其他好文 时间:
2020-05-25 09:31:21
阅读次数:
214
1.生成dll 然后选择创建静态链接库: 创建的时候,记得勾选QtGui,并且修改pro文件,添加下面1句(这样就可以创建界面了): 修改staticlib.cpp: #include "staticlib.h" #include <QMessageBox> StaticLib::StaticLib ...
分类:
其他好文 时间:
2020-05-12 20:40:04
阅读次数:
86
from PyQt5.QtWidgets import QApplication,QWidget,QProgressBar,QPushButton from PyQt5.QtCore import QBasicTimer from PyQt5.QtGui import QIcon import sy ...
分类:
编程语言 时间:
2020-05-09 20:55:56
阅读次数:
79