[PyQt] future of (py)qt desktop
Phil Thompson
phil at riverbankcomputing.com
Wed Jan 6 14:46:08 GMT 2016
> On 6 Jan 2016, at 2:03 pm, Dietmar Schwertberger <maillist at schwertberger.de> wrote:
>
> On 06.01.2016 13:16, Florian Bruhin wrote:
>> * Saša Janiška <gour at atmarama.com> [2016-01-06 12:27:13 +0100]:
>>> there's no C++/Python api for the more recent Qt Quick
>>> approach, which makes development a pain."
>> Both are wrong ;)
> So, Qt Quick now does have the required API to create GUIs from Python without QML?
No.
> Can you please provide an example? Maybe something like the hello world: http://stackoverflow.com/questions/8762870/how-to-implement-a-simple-button-in-pyqt
I have experimented with ways of eliminating the need for QML. The main problem is that the internal architecture of QML/Quick etc is, let's say, not state of the art. (In the Trolltech days they never would have released something so badly designed.)
QML is fine for what it does - which isn't very much. I would treat it just as a way of creating GUIs (ie. implement views in QML, but implement models and controllers in Python). While you can implement lots more in QML I wouldn't recommend it because it's not easy to re-use or extend code or to manage large amounts of code.
Phil
More information about the PyQt
mailing list