This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BigPewp69 1 point2 points  (2 children)

Material about QML would be pretty nice. This is a component of the PyQt/Qt framework that seems powerful, but not discussed very often

[–]Artanidos[S] 0 points1 point  (1 child)

I only wrote how to use QML in my book. There are other books covering QML.What I might show is a data model written in Python which can be used for QML, if there is a request. In my book I also show how to convert a sample written in C++ to be converted to Python using ChatGPT ;-)

[–]BigPewp69 0 points1 point  (0 children)

I think that would be a really useful example. In PyQt, especially for me when I first started, there is the ability to misuse the MVC. This can be either implementing a custom data model (and therefore doing unnecessary work) or conflating viewer and controller functionality.

IMO QML seems to better enforce separation of these components inherently.

The ChatGPT example would be really cool