Re: Current status of kdebindings
Stefano Crocco <[email protected]> Sat, 30 Mar 2024 20:35:51 +0100
| Newsgroups | gmane.comp.kde.devel.bindings |
|---|---|
| Message-ID | <13484872.uLZWGnKmhe@casa> |
On luned=C3=AC 25 marzo 2024 04:11:14 CET Mathieu Jobin wrote: > Reviving this old thread. >=20 > Now that Plasma 6 is out. Would there be enough interests to see QtRuby > being brought back to life for Qt6 ? >=20 > I did not get a chance to test the port to Qt5, anybody can comment on how > well it worked? >=20 > If we could make it easier on people to install it and start off. I'm > willing to put some of my time, if there is a team or interested people to > work with. >=20 > cheers, Unfortunately, my attempt to document and improve the old bindings was=20 unsuccessful: I realized that I was able to understand what a single functi= on=20 did, but I couldn't see how everything fit together. In the end, I gave up.= The=20 bindings themselves worked well enough, at least until I switched to ruby 3= =2E1.=20 =46rom that version of ruby, they practically stopped working because creat= ing a=20 second object of any class produced an error complaining about a missing=20 allocator (or something like that). Just a few days ago, I had to update al= l=20 my system and realized that they don't even build correctly with the curren= t=20 version of Qt5, for reasons I can't understand. I'd love for QtRuby to be brought back, but I'm not sure whether starting f= rom=20 the old bindings is the best way to proceed. I was wandering whether using= =20 Swig [1] wouldn't be a better idea. I tried creating wrappers for a few=20 methods of simple classes like QPoint, QSize and QRect and they were very e= asy=20 to do. Things become more difficult for QObject derived classes, as you hav= e to=20 take care of memory management and so on, not to mention signal-slot=20 connections, which I didn't try to do. In case there's a group working on this, I can lend a hand, too.=20 Unfortunately, until the end of June I won't have much free time, so my hel= p=20 will be limited. Maybe, it would be a good idea to look for other intereste= d=20 people on the ruby mailing list. Stefano [1] https://www.swig.org/