Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
QT5如何使用
Experiences and Insight
619
views ·
6
replies ·
To
floor
Go
一顾倾城
deepin
2018-10-16 19:11
Author
通过应用商店安装了QT5,可以设计界面输出UI文件,但是如何讲UI文件应用到Python上呢。
网上百度使用pyqtcs5 命令转换,但是COnsole灭有这个命令啊
在Console下使用pyqtc5 如下
如何在Deepin下使用QT UI,知道的回复一下,谢谢
Reply
Like 0
Favorite
View the author
All Replies
白菜
deepin
2018-10-16 19:32
#1
你有没有安装pyqt5,没有的话装一个
一般我都是直接写的很少有画的界面
Reply
Like 0
View the author
cgp
deepin
2018-10-16 21:04
#2
有两种方法,一是import PyQT5.uic 然后self.loadU
Reply
Like 0
View the author
cgp
deepin
2018-10-16 21:09
#3
有两种方法,一是import PyQT5.uic 然后self.loadUi('你的ui文件路径',self)这个可以动态加载UI文件,当设计的ui改动时可自动更新。二是执行pyuic -o 名称.py 名称.ui。将ui文件装换
Reply
Like 0
View the author
cgp
deepin
2018-10-16 21:11
#4
python脚本,然后setupUi加载一下就行了。这个适合开发完成打包应用。
Reply
Like 0
View the author
cgp
deepin
2018-10-16 21:12
#5
cgp 发表于 2018-10-16 13:04
有两种方法,一是import PyQT5.uic 然后self.loadU
抱歉,手机误触
Reply
Like 0
View the author
一顾倾城
deepin
2019-04-04 07:06
#6
python搞桌面编程,有点麻烦
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Events
More
网上百度使用pyqtcs5 命令转换,但是COnsole灭有这个命令啊
在Console下使用pyqtc5 如下
如何在Deepin下使用QT UI,知道的回复一下,谢谢