News for hackers. Stuff that matters.
Re:A Simple Rust GUI with QML by mercurial on Thursday February 23, 2017 @12:55PM (#13716009)
C++ is notoriously hard to bind. The only high-quality Qt bindings I know of are Python ones (Pyside).
Re:A Simple Rust GUI with QML by therecipe on Thursday February 23, 2017 @02:03PM (#13716694)
shameless plug for my Go binding: https://github.com/therecipe/qt it's still WIP though
Re:A Simple Rust GUI with QML by eql5 on Thursday February 23, 2017 @02:45PM (#13717071)
A recent one: Lisp (ECL) with QML integration: https://gitlab.com/eql/EQL5/wikis/home (see QML link: direct Lisp function calls from QML, examples of QML generation from Lisp).
Re:A Simple Rust GUI with QML by shmerl on Thursday February 23, 2017 @04:43PM (#13718090)
How did PyQt manage to solve this problem?
Re:A Simple Rust GUI with QML by sevensor on Thursday February 23, 2017 @08:42PM (#13720072)
PyQt has a whole other project, called sip, in service to it. If I understand it correctly, sip generates the bindings semi-automatically with a lot of special cases for Qt. Compared to the other set of Python C++ library bindings I've used (Vtk), they're magnificent.
Re:A Simple Rust GUI with QML by mindv0rtex on Thursday February 23, 2017 @10:54PM (#13720825)
Any tips you can give as far as starting to learn VTK, especially its Python bindings?
Re:A Simple Rust GUI with QML by sevensor on Friday February 24, 2017 @09:12AM (#13723777)
My experience is with maintaining somebody else's code, so I learned by cutting myself on its sharp edges. My advice is to avoid if possible. Unlike Qt, you can't subclass Vtk objects in Python. Which is a huge pain, because the Vtk design is heavily object-oriented. The autogenerated documentation is pretty unhelpful. It looks like this: http://www.vtk.org/doc/nightly/html/classvtkSliderWidget.htm.... Compare that with the magnificent Qt documentation: http://doc.qt.io/qt-5/qslider.html, and you'll see why I prefer working with Qt.
Re:A Simple Rust GUI with QML by Siecje on Thursday February 23, 2017 @02:07PM (#13716714)
What about PyQt5? Or does it work differently?
Re:A Simple Rust GUI with QML by jacmoe on Thursday February 23, 2017 @02:49PM (#13717099)
PyQt5 does not seem to be maintained. The last couple of times I checked it, it was pretty dead: one maintainer with no time.
Re:A Simple Rust GUI with QML by ambrice on Thursday February 23, 2017 @03:38PM (#13717539)
I think you have this backwards. PyQt5 is well maintained by a company that produces a GPL version and sells a commercially licensed version, which was Qt's original business model. Pyside was originally created by Nokia back when Nokia bought Qt, re-licensed it as LGPL, and needed LGPL python bindings. It's no longer maintained and only works with Qt4. Pyside 2 is a port of pyside to Qt 5 that seems to have some level of activity, but no releases..
Re:A Simple Rust GUI with QML by flukus on Friday February 24, 2017 @01:09AM (#13721464)
Templatize the language, toolkit version and that could just about describe every binding of every c++ toolkit ever made.
Re:A Simple Rust GUI with QML by sevensor on Thursday February 23, 2017 @08:45PM (#13720098)
I think the Qt Company is trying to revive pyside, but they have a lot of catching up to do. Not sure if they plan to do an update on their bindings generator (Shiboken) too, or start from scratch on that front.
Re:A Simple Rust GUI with QML by jacmoe on Thursday February 23, 2017 @09:38PM (#13720420)
Yes, I actually do have this backwards .. in more than one way ..:P

Sorry, I was thinking of Lua for Qt5 .. That was silly!

And, it is a pity about PySide, it was a neat project. :(