qt设计器中的查看python代码选项不存在 [英] View python code option in qt designer is absent

查看:45
本文介绍了qt设计器中的查看python代码选项不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 qt 设计器,但没有看到我在软件视频中看到的表单>查看 python 代码选项.我尝试使用命令行 uic 转换,但我不知道如何让它工作,我安装了 anaconda,但我不确定如何让转换器运行.我真的希望能够使用内置选项.

I am trying to work with qt designer and I do not see the form>view python code option I see in videos on the software. I tried using the command line uic conversion but I can't figure out how to get it to work, I have anaconda installed and I am not sure how to get the converter to run. I would really like to just be able to use the built in option.

推荐答案

使用命令行,可以输入

pyuic5 -x yourfilename.ui  -o outputfilename.py

-x:用于生成额外的代码来测试和显示类.

-x: is used to generate extra code to test and display the class.

这篇关于qt设计器中的查看python代码选项不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆