1 import sys 2 from PyQt5.QtCore import Qt 3 from PyQt5.QtWidgets import QApplication, QWidget, QTreeWidget, QTreeWidgetItem, QLabel, QHBoxLayout 4 5 ... ...
分类:
其他好文 时间:
2019-02-15 13:15:02
阅读次数:
189
1 import sys 2 from PyQt5.QtWidgets import QApplication, QWidget,QLabel 3 from PyQt5.QtGui import QFont 4 from PyQt5 import QtCore 5 6 class Demo(QWid... ...
分类:
其他好文 时间:
2019-02-11 10:47:07
阅读次数:
507
1 import sys 2 from PyQt5.QtCore import Qt, QTimer 3 from PyQt5.QtWidgets import QApplication, QWidget, QProgressBar, QPushButton, QHBoxLayout, QVBoxL... ...
分类:
其他好文 时间:
2019-02-10 20:19:04
阅读次数:
252
1 import sys 2 from PyQt5.QtCore import QTimer, Qt 3 from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QLabel, QVBoxLayout 4 5 class Dem... ...
分类:
其他好文 时间:
2019-02-10 12:14:37
阅读次数:
256
1 import sys 2 from PyQt5.QtGui import QPixmap 3 from PyQt5.QtWidgets import QApplication, QWidget, QRadioButton, QLabel, QHBoxLayout, QVBoxLayout 4 5... ...
分类:
其他好文 时间:
2019-02-09 17:49:04
阅读次数:
281
#资料 http://blog.sina.com.cn/s/blog_6483fa330102xo6w.html例子import sysfrom PyQt5.QtWidgets import QApplication, QWidget, QLabelfrom PyQt5.QtGui import Q... ...
分类:
其他好文 时间:
2019-02-08 10:18:11
阅读次数:
820
import sysfrom PyQt5.QtWidgets import QApplication, QLabelif __name__ == '__main__': app = QApplication(sys.argv) #想要创建应用必须先实例化一个QApplication,并将sys.ar... ...
分类:
其他好文 时间:
2019-02-06 17:11:25
阅读次数:
188
void GetScreenInfo() { QDesktopWidget* desktopWidget = QApplication::desktop(); //获取可用桌面大小 QRect deskRect = desktopWidget->availableGeometry(); int m_... ...
分类:
其他好文 时间:
2018-12-15 13:51:08
阅读次数:
383
前些天做Qt发布版,发现居然不显示图片,后来才发现原来还有图片的库没加!找找吧,去qt的安装包,我装在了F盘,在F盘F:/QT/qt/plugins,找到了plugins,这里面有个 imageformats是图片的库,里面有jpg,gif等,你用到那种格式就加那种!加的时候一点过要注意,将imag ...
分类:
移动开发 时间:
2018-12-13 10:26:24
阅读次数:
386
Qt事件处理 Qt事件处理的五个层次 Qt 应用程序 事件处理 的五个层次,同时也是时间流程如下图所示: 说明如下: QT 自定义事件 Qt自定义事件的实现也是按照五个层次的原理实现的 1 1 #include <QtGui/QApplication> 2 2 #include <QCoreAppl ...
分类:
其他好文 时间:
2018-11-29 10:55:06
阅读次数:
219