我找到了bindings/QtDesigner目录,但是有所有的.sip文件。
在pypi上的包装网站中,它说
sip-install工具还将安装sdist包中的绑定,但允许您配置安装的许多方面。
sip-install需要一个名为pyproject.toml的文件,但是只有QtDesigner.toml,如果我将它重命名为pyproject.toml,它将无法运行。
sip-install: pyproject.toml: the '[tool.sip.metadata]' section is missingQtDesigner.toml的含量是
# Automatically generated configuration for PyQt6.QtDesigner.
sip-version = "6.0.1"
sip-abi-version = "13.0"
module-tags = ["Qt_6_0_0", "Qt_6_0_0", "Linux", "Qt_6_0_0", "Qt_6_0_0", "Linux", "Qt_6_0_0", "Qt_6_0_0", "Linux", "Qt_6_0_0", "Qt_6_0_0", "Linux"]
module-disabled-features = ["PyQt_WebChannel", "PyQt_OpenGL_ES2", "PyQt_WebChannel", "PyQt_WebChannel", "PyQt_OpenGL_ES2", "PyQt_WebChannel"]发布于 2021-10-06 11:10:37
首先,您需要安装pyqt6-tools
pip install pyqt6-tools然后可以使用QtDesigner:
pyqt6-tools designer如果在下面运行命令,还可以看到所有命令pyqt6-tools:
pyqt6-tools --help输出:
Usage: pyqt6-tools [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
designer
installuic
qmlscene
qmltestrunner希望能帮助你。
发布于 2021-03-16 04:28:25
您可以将PyQt5的设计器用于PyQt6。可以使用以下命令将ui文件转换为PyQt6 Python:
pyuic6 -x filename.ui -o filename.py注意:您不需要安装pyuic6,它是与PyQt6一起自动安装的。
https://stackoverflow.com/questions/66309726
复制相似问题