<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:12.0pt;
        font-family:"Aptos",sans-serif;
        mso-ligatures:standardcontextual;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am running into an issue trying to use QAxWidget in PyQt6:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">import sys<o:p></o:p></p>
<p class="MsoNormal">from PyQt6.QAxContainer import QAxWidget<o:p></o:p></p>
<p class="MsoNormal">from PyQt6.QtWidgets import QApplication, QMainWindow<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">class MyWindow(QMainWindow):<o:p></o:p></p>
<p class="MsoNormal">    def __init__(self):<o:p></o:p></p>
<p class="MsoNormal">        super().__init__()<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">        self.ax = QAxWidget("Shell.Explorer.2") # other ActiveX controls are also broken<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">if __name__ == "__main__":<o:p></o:p></p>
<p class="MsoNormal">    app = QApplication(sys.argv)<o:p></o:p></p>
<p class="MsoNormal">    window = MyWindow()<o:p></o:p></p>
<p class="MsoNormal">    window.show()<o:p></o:p></p>
<p class="MsoNormal">    sys.exit(app.exec())<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Trying to run this in Python 3.13.7 with only PyQt6 installed, I get “Cannot mix incompatible Qt library (6.9.0) with this library (6.9.2)”. Replacing PyQt6 in the imports with PyQt5 works as expected on the other hand (after installing
 PyQt5 of course). Am I doing something wrong, or is there a problem with the pre-built binaries?
<o:p></o:p></p>
</div>
</body>
</html>