<div dir="ltr">Hi,<div><br></div><div>I'm trying to create a qtquick application using PyQt5.</div><div>I would like to use an ApplicationWindow as the top level item of my qml file. To do that, I shouldn't use the QQuickView but directly QQmlComponent as it's done here with a non-graphic example:</div>
<div><a href="http://pyqt.sourceforge.net/Docs/PyQt5/qml.html">http://pyqt.sourceforge.net/Docs/PyQt5/qml.html</a><br></div><div><br></div><div>My sample code:</div><div><a href="https://github.com/buttleofx/testsQml/tree/qmlApplicationWindow">https://github.com/buttleofx/testsQml/tree/qmlApplicationWindow</a><br>
</div><div><br></div><div>But it crashes:</div><div><div>A</div><div>B</div><div>C</div><div>D</div><div>QObject::connect: Cannot connect (null)::destroyed(QObject*) to QWindow::screenDestroyed(QObject*)</div><div>Erreur de segmentation (core dumped)</div>
</div><div><br></div><div>Same result if I use Window instead of ApplicationWindow.</div><div><br></div><div>Any idea?</div><div><br></div><div>Regards,</div><div>Fabien</div><div><br></div></div>