type
status
date
slug
summary
tags
category
icon
password

1.在PyCharm中打开QtDesigner

打开QtDesigner
notion image

2.创建界面

如果你不想每次打开都弹出这个窗口,取消勾选即可。
notion image
notion image

3.使用QtDesigner生成.ui文件

在左边的Wiget Box中找到“Push Button”、“Label”、“Text Browser”,
你觉得你做好后可以快捷键Ctrl+r,预览当前编写的GUI
notion image
notion image
ctrl+s 进行保存,会发现下面会有一个.ui文件,如下所示:
notion image

4.使用PyUIC生成.py文件

1.改变文件位置
notion image
notion image
2.运行生成的py文件
notion image
notion image
驱动程序
 
Relate Posts
2.5电学基础——电阻2.安装Qt Tools
Loading...
孟浩
孟浩
笔耕不辍,屡践致远
Latest posts
2025/4/4—关于笔记和博客的一些想法
2025-4-4
7.8信号——自定义信号pyqtSignal
2025-4-1
7.Numpy索引和切片
2025-4-1
8.提升网站访问速度
2025-3-31
7.更新博客欢迎语
2025-3-31
6.取消照片左右交替
2025-3-31
Announcement
🎉NotionNext 4.5已经上线🎉
-- 感谢您的支持 ---
👏欢迎更新体验👏