has anyone looked at making QT apps with kotlin/Na...
# kotlin-native
w
has anyone looked at making QT apps with kotlin/Native?
s
It would require a C++ to C translation first. A quick Google search only turned up dead ends for C bindings to QT.
w
😞 ok thanks
g
It's definitely possible to bind to QtQuick but I'm not aware of anything useable out there yet, although creating a nice wrapper around something like DOtherSide seems viable. (I experimented with it a while back, but stopped before looking into models as that'd require me to learn how to use those in C++ first...)
b
Why…? If you’re writing in Kotlin already why not just use Swing, JavaFX, andor Android UI with Kotlin/JVM? Or Electron with Kotlin/JS?
l
Never use Electron
We already have a browser on our machine
w
QT apps are native and therefore can integrate into the environment. Like if I want to develop an app or widget for KDE Plasma and Plasma Mobile, it is going to be QT-based.
I like JavaFx (I use tornado fx) but sometimes you want a true native app.
I also hate electron 😄
💪🏽 1
b
I also disagree with Electron’s approach to stuff… cough S *cough*… but it’s generally inoffensive. I’ve just seen so many horrid UIs made with QT that I really can’t bring myself to endorse it
I hope Apple brings AppKit or UXKit to Linux and Windows for Swift
g
What about writing all the backend code in Kotlin Native, building a C-compatible library and using that in a native QT (or whatever) project? That's the scenario I intend to use as soon as I have a good enough excuse for Android/iOS/server, why not desktop..? 🙂
w
^ This is what I want to do @gregopet, but I was just wondering if anyone has tried this yet.
1