<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QT QML Application slower compared to Widget Application in Python]]></title><description><![CDATA[<p dir="auto">Hello everyone,</p>
<p dir="auto">I am trying to create a graphical user interface which will run on a QT container on Torizon.</p>
<p dir="auto">I have tried two different methods to create the graphical user interface. For method 1 I generated the GUI using a QML file and for method 2 I used the QWidgets. I found out that generating a GUI with QWidgets is much faster.  Am I doing something wrong with loading the QML file or is a GUI with Widgets just faster compared to a GUI with a QML file?</p>
<p dir="auto">For both applications, I have used python 3.10.9 together with PySide2. I am running the application on Torizon on a Toradex IMX8 module.</p>
<p dir="auto">The code which I use to load the QML file in Python is written down below. This code is the same code as the sample code which Torizon provides when you select in Visual Studio Code that you want to create a QT Python Application with QML.</p>
<pre><code>import sys
import os
import PySide2
from PySide2.QtWidgets import QApplication
from PySide2.QtCore import QUrl, QObject
from PySide2.QtQuick import QQuickView

if __name__ == "__main__":
    print("Hello world!")

    app = QApplication(sys.argv)

    view = QQuickView()

    qml = QUrl("mainwindow.qml")

    view.setSource(qml)
    view.show()

    sys.exit(app.exec_())
</code></pre>
<p dir="auto">Thank you!</p>
]]></description><link>https://forum.qt.io/topic/142384/qt-qml-application-slower-compared-to-widget-application-in-python</link><generator>RSS for Node</generator><lastBuildDate>Sat, 27 Jun 2026 11:43:56 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/142384.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Jan 2023 13:52:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QT QML Application slower compared to Widget Application in Python on Wed, 25 Jan 2023 19:29:19 GMT]]></title><description><![CDATA[<p dir="auto">So I would say my hunch was correct, you do not get hardware acceleration since the direct rendering library for your GPU cannot be found.</p>
]]></description><link>https://forum.qt.io/post/745218</link><guid isPermaLink="true">https://forum.qt.io/post/745218</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 25 Jan 2023 19:29:19 GMT</pubDate></item><item><title><![CDATA[Reply to QT QML Application slower compared to Widget Application in Python on Wed, 25 Jan 2023 08:10:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> I do get this warning:</p>
<p dir="auto">libEGL warning: MESA-LOADER: failed to open vivante: /usr/lib/dri/vivante_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri</p>
]]></description><link>https://forum.qt.io/post/745124</link><guid isPermaLink="true">https://forum.qt.io/post/745124</guid><dc:creator><![CDATA[Anouk]]></dc:creator><pubDate>Wed, 25 Jan 2023 08:10:39 GMT</pubDate></item><item><title><![CDATA[Reply to QT QML Application slower compared to Widget Application in Python on Tue, 24 Jan 2023 19:42:53 GMT]]></title><description><![CDATA[<p dir="auto">My gut feeling would be that somehow your application uses the software OpenGL pipeline rather than the hardware accelerated one. Do you seen any error printed on the console with regard to that ?</p>
]]></description><link>https://forum.qt.io/post/745076</link><guid isPermaLink="true">https://forum.qt.io/post/745076</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 24 Jan 2023 19:42:53 GMT</pubDate></item><item><title><![CDATA[Reply to QT QML Application slower compared to Widget Application in Python on Tue, 24 Jan 2023 16:01:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/friedemannkleint">@<bdi>friedemannkleint</bdi></a></p>
<p dir="auto">I am using  pyside 2 (so qt5) since that is what Torizon supports according to their website. I could not find whether I could use Pyside6. I have tried it, but I could not get it running. For some reason, the container kept on building with pyside2, even though I had adapted everything to pyside6.</p>
]]></description><link>https://forum.qt.io/post/745041</link><guid isPermaLink="true">https://forum.qt.io/post/745041</guid><dc:creator><![CDATA[Anouk]]></dc:creator><pubDate>Tue, 24 Jan 2023 16:01:04 GMT</pubDate></item><item><title><![CDATA[Reply to QT QML Application slower compared to Widget Application in Python on Tue, 24 Jan 2023 12:40:11 GMT]]></title><description><![CDATA[<p dir="auto">Have you tried Qt 6?</p>
]]></description><link>https://forum.qt.io/post/745003</link><guid isPermaLink="true">https://forum.qt.io/post/745003</guid><dc:creator><![CDATA[friedemannkleint]]></dc:creator><pubDate>Tue, 24 Jan 2023 12:40:11 GMT</pubDate></item><item><title><![CDATA[Reply to QT QML Application slower compared to Widget Application in Python on Tue, 24 Jan 2023 10:47:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto">The IMX8 chips have a Vivante GC7000Lite as graphics controller.<br />
And I use the qt weston container with vivante, so that it uses the vivante controller, but it is still much slower compared to the program with QWidgets and the Vivante controller.</p>
]]></description><link>https://forum.qt.io/post/744988</link><guid isPermaLink="true">https://forum.qt.io/post/744988</guid><dc:creator><![CDATA[Anouk]]></dc:creator><pubDate>Tue, 24 Jan 2023 10:47:10 GMT</pubDate></item><item><title><![CDATA[Reply to QT QML Application slower compared to Widget Application in Python on Mon, 23 Jan 2023 20:06:10 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">Did you check that your hardware has hardware acceleration for QtQuick to take advantage from ?</p>
]]></description><link>https://forum.qt.io/post/744906</link><guid isPermaLink="true">https://forum.qt.io/post/744906</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 23 Jan 2023 20:06:10 GMT</pubDate></item></channel></rss>