[Seek Help] pyqt5.11.3 不包含模块QAxContainer
Tofloor
poster avatar
老蒋头
deepin
2022-11-09 22:16
Author

我使用的是deepin 20.7,pyqt版本是5.11.3,但是在编写程序的时候,需要用到QAxContainer做接口,系统显示找不到这个模块。我是使用sudo apt-get install qt5-default qttools5-dev-tools #安装 pyqt5 工具。难道要卸载Pyqt5及其工具,重新使用pip3 install...来全部重新安装Pyqt5?求助:有没有那位遇到相同问题,并且解决了!!!

Reply Favorite View the author
All Replies
[^_^]
deepin
2022-11-10 01:27
#1

https://github.com/PyQt5/PyQt/issues/115

Reply View the author
[^_^]
deepin
2022-11-10 01:27
#2

或者有没有可能,Linux 上的 Qt 里本就没有这个模块..

Reply View the author
老蒋头
deepin
2022-11-10 01:51
#3

应该是有的,我看见有人用这个模块在PyQt5中做打开Office文档。windows的Qt版本必须是商业版本似乎才有,PyQt5应该是有的。

Reply View the author
老蒋头
deepin
2022-11-10 03:12
#4

你发过来的链接我看了,他是针对Os win10 的,deepin我更新了,没有用。还不知道是什么原因?

Reply View the author
sudo_free
deepin
2022-11-10 03:38
#5

"The QAxContainer module is a Windows-only extension for accessing ActiveX controls and COM objects."

https://doc.qt.io/qt-5/qaxcontainer-module.html

Reply View the author
老蒋头
deepin
2022-11-10 17:23
#6
sudo_free

"The QAxContainer module is a Windows-only extension for accessing ActiveX controls and COM objects."

https://doc.qt.io/qt-5/qaxcontainer-module.html

from PyQt5 import QtCore, QtGui , QAxContainer, QtWidgets
   
class Ui_Flash(QAxContainer.QAxWidget):

这是网络上的一个帖子,加载flash swf格式文档,说明模块是有的,而且,搜索deepin目录,也可以找到这个模块,应该是deepin自带PyQt5中带来的,但是无论这么设置路径,自己的项目都找不到这个模块。

Reply View the author
老蒋头
deepin
2022-11-10 17:25
#7
老蒋头
from PyQt5 import QtCore, QtGui , QAxContainer, QtWidgets
   
class Ui_Flash(QAxContainer.QAxWidget):

这是网络上的一个帖子,加载flash swf格式文档,说明模块是有的,而且,搜索deepin目录,也可以找到这个模块,应该是deepin自带PyQt5中带来的,但是无论这么设置路径,自己的项目都找不到这个模块。

不过也可能人家就是在windows环境下写的代码。linux下确实没有看见有案例。谢谢啦!!!

Reply View the author
老蒋头
deepin
2022-11-10 18:51
#8

最终确定了,在windows10 下的PyQt5 确实有这个模块,并且功能很强大。看来只有等待可以支持deepin 系统了。

Reply View the author
[^_^]
deepin
2022-11-10 23:53
#9
老蒋头

最终确定了,在windows10 下的PyQt5 确实有这个模块,并且功能很强大。看来只有等待可以支持deepin 系统了。

支持不了, ActiveX 是 windows 独有的。

Reply View the author
牧野
deepin
2022-11-11 03:42
#10

这个模块容器是承载activex组建的,这是通过windows的com组建技术实现的,linux没有注册表也就没有com组件!

Reply View the author