[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] QtQuick documentation for PyQt5?
From:       Russell Warren <russ () perspexis ! com>
Date:       2014-01-27 16:19:41
Message-ID: CAD91c16otwazu-_sMeyFjWF==+tyYmAj-MdY_L4phQ=cxcPVmw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Where is the documentation for getting QtQuick/QML working in PyQt5?  I'm
new to PyQt and am trying to take QML for a spin and it is a tough slog.

The PyQt4 docs had what looked to be a decent starting point, going as far
as showing the connection of signals defined in QML through to python code
(awesome):
http://pyqt.sourceforge.net/Docs/PyQt4/qml.html

That looked great, except the QDeclarativeView is no more in PyQt5.  I see
that PyQt4.QtDeclarative is also gone, and that things have more-or-less
moved to PyQt5.QtQml and PyQt5.QtQuick.

Moving up to the new PyQt5 docs, they don't really show how to do an
application, but only seem to highlight the apparently new ability to
register python types with QML:
http://pyqt.sourceforge.net/Docs/PyQt5/qml.html

Searching the mailing list and web, I've found a convenient (only vaguely
related) thread [1] that has both PyQt4 and PyQt5 code for the same thing,
which reveals that the proper container to use now seems to be
QtQuick.QQuickView.  This si now my starting point.

I've searched the PyQt5 docs for QQuickView references to try and find
proper docs on how to use this (like existed for PyQt4), but nothing useful
comes up.

After all that, I'll keep plugging away at this and try and port the PyQt4
documentation example to PyQt5, but I can't shake the feeling I'm not
looking in the right place for PyQt5 docs.

Where are the docs for using QtQuick in PyQt5?

Thanks,
Russ


[1]
http://www.riverbankcomputing.com/pipermail/pyqt/2013-October/033279.html

[Attachment #5 (text/html)]

<div dir="ltr">Where is the documentation for getting QtQuick/QML working in PyQt5?  \
I&#39;m new to PyQt and am trying to take QML for a spin and it is a tough \
slog.<div><br></div><div>The PyQt4 docs had what looked to be a decent starting \
point, going as far as showing the connection of signals defined in QML through to \
python code (awesome):</div>


<div><a href="http://pyqt.sourceforge.net/Docs/PyQt4/qml.html" \
target="_blank">http://pyqt.sourceforge.net/Docs/PyQt4/qml.html</a></div><div><br></div><div>That \
looked great, except the QDeclarativeView is no more in PyQt5.  I see that \
PyQt4.QtDeclarative is also gone, and that things have more-or-less moved to \
PyQt5.QtQml and PyQt5.QtQuick.<br>


</div><div><div><br></div><div>Moving up to the new PyQt5 docs, they don&#39;t really \
show how to do an application, but only seem to highlight the apparently new ability \
to register python types with QML:</div></div><div>


<div><a href="http://pyqt.sourceforge.net/Docs/PyQt5/qml.html" \
target="_blank">http://pyqt.sourceforge.net/Docs/PyQt5/qml.html</a></div><div><br></div></div><div>Searching \
the mailing list and web, I&#39;ve found a convenient (only vaguely related) thread \
[1] that has both PyQt4 and PyQt5 code for the same thing, which reveals that the \
proper container to use now seems to be QtQuick.QQuickView.  This si now my starting \
point.</div>


<div><br></div><div>I&#39;ve searched the PyQt5 docs for QQuickView references to try \
and find proper docs on how to use this (like existed for PyQt4), but nothing useful \
comes up.</div><div><br></div><div>After all that, I&#39;ll keep plugging away at \
this and try and port the PyQt4 documentation example to PyQt5, but I can&#39;t shake \
the feeling I&#39;m not looking in the right place for PyQt5 docs.</div>


<div><br></div><div>Where are the docs for using QtQuick in \
PyQt5?</div><div><br></div><div>Thanks,<br>Russ</div><div><br></div><div><br></div><div>[1] \
<a href="http://www.riverbankcomputing.com/pipermail/pyqt/2013-October/033279.html" \
target="_blank">http://www.riverbankcomputing.com/pipermail/pyqt/2013-October/033279.html</a></div>



<div><br></div></div>



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic