6 ms·
A Book about Qt5
- Siecje 11y agoDoes anyone have any good resources on using Qt5 and QML with Python (PyQt5)?
- dante9999 11y agounfortunately pyqt docs are far from perfect everytime i have to do something with pyqt i just go to qt docs and just "translate" the concepts and api calls to python. if you are able to understand c++ syntax and translate that in your head to python youll be ok. Aside from docs i used some links from this https://wiki.python.org/moin/PyQt https://wiki.python.org/moin/PyQt but you have to be careful to avoid outdated resources (current version is 5 and many things differ between 4 & 5) and not all tutorials are high quality. I also wrote one tutorial myself BTW http://pawelmhm.github.io/python/pyqt/qt/webkit/2015/09/08/browser.html http://pawelmhm.github.io/python/pyqt/qt/webkit/2015/09/08/b...
- deleted 11y ago[deleted]
- jlgaddis 11y agoIt's not just "A Book about Qt5", it's a free e-book about Qt5 that's available in HTML, PDF, ePub, and even QtHelp form. From the submission title, I assumed it was a non-free, dead tree book.
- trishume 11y agoI read this book a while ago and it was pretty good. Qt5 is really underused for how good it is. It's a really good platform for making native apps and it even has bindings for many different languages. And since it can be used for IOS&Android apps it's a great competitor to React Native. It is reactive and declarative like React but with way less boilerplate and everything is so much easier to do, and it supports more platforms. The only thing React Native has on it is native looking widgets for IOS, but if you plan on using your own design anyway, that's not a problem. You get the productivity of a modern reactive framework with the completeness of Qt. It has things like a GUI builder that modifies and generates code for you, and the code it outputs is close to what a human would write, so you aren't locked into it.
- PeCaN 11y agoI really want to like Qt5, but it's just so... big, and using it from C++ is so cumbersome. I don't suppose you're familiar with any quality Rust or Nim or D or some other compiled-language-that-sucks-less bindings? There's https://github.com/cyndis/qmlrs https://github.com/cyndis/qmlrs, but that seems very incomplete/sketchily maintained so far (which is the problem with most bindings that I know of).
- rhodysurf 11y agoIve been contributing to this when I have free time https://github.com/salviati/go-qt5 https://github.com/salviati/go-qt5 . I am a C++ Qt 5 dev by day so its been a fun little project. Far from complete though. The only really complete bindings for Qt 5 are PyQt5 but its not compiled so its out for me. There are solid qml bindings for go and the rust ones worked fine last time I tested. Im not really a big fan of QML though. Its really much different than using widgets and Im not a Javascript dev by any means.
- oblio 11y agoThe best bindings are the ones for Python" PyQt (I know it's not compiled, but it's definitely a nicer language than C++). Unfortunately, it's an absolute pain the butt to try to use those on mobile, especially since Python does not build out of the box on any mobile platform (!).
- PeCaN 11y agoI like PyQt except that it's a pain to deploy anything written in it on Windows—though to be fair, I haven't tried for a couple years! I wonder if PyQt works with Cython. That could be interesting.
- vetinari 11y agoI used to have a good experience with py2exe in the past. We used it in production, to deliver exes to end users. Because it looks abandoned nowadays, I've tried pyinstaller recently. It worked OK, too; the only thing that was slightly annoying was pulling in the Windows 8/2012 (api-ms-win-*) style system dlls.
- rbrogan 11y agoPersonally, I have enjoyed working in Qt. For anyone looking to get going, I recommend practicing by transcribing the example code and then try tweaking it a little (and more so for Qt / GUI development than with other technologies). It takes a bit of boot time, but once you get going you will find you naturally start to "get it".
- daurnimator 11y agoThe problem with Qt5 is it's almost C++ exclusively. There are some python bindings in PyQt, but all the other languages are stuck with the QML subset. Does anyone have a path out of this mess?
- fernly 11y agoOK I be confused. This seems, to a quick poke-around, to be all about QML. The Qt that I know, from writing a couple of apps using PyQt, is about windows and widgets made by creating instances of classes, and connecting signals to sockets and menu actions to handlers. It's a whole different thing entirely! Like their discussion of MVP has the basic concepts but I know MVP by way of subclassing QAbstractTableModel and QTableView and QAbstractItemDelegate and so on. I don't say they are wrong to say the book is about Qt5. I am just baffled by how a Qt5 book would not even mention such things.
- pjmlp 11y agoQt seems to be going QML all around and C++ just for the lower layers. Just check the videos of the conferences.
- hitlin37 11y agoThis is really good resource. Congrats to authors for putting this!