https://kotlinlang.org logo
Title
w

wakingrufus

01/23/2018, 4:35 PM
has anyone looked at making QT apps with kotlin/Native?
s

Sam

01/23/2018, 5:01 PM
It would require a C++ to C translation first. A quick Google search only turned up dead ends for C bindings to QT.
w

wakingrufus

01/23/2018, 11:09 PM
😞 ok thanks
g

GitOut

01/24/2018, 12:08 AM
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

benleggiero

01/25/2018, 5:51 AM
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

louiscad

01/26/2018, 10:14 AM
Never use Electron
We already have a browser on our machine
w

wakingrufus

01/26/2018, 3:53 PM
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

benleggiero

01/26/2018, 6:27 PM
I also disagree with Electron’s approach to stuff… cough 😒lack: *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

gregopet

01/31/2018, 9:47 AM
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

wakingrufus

01/31/2018, 5:18 PM
^ This is what I want to do @gregopet, but I was just wondering if anyone has tried this yet.
1