Live data from Hacker News

Qt for Android better than ever before

kdab.com

71–79 of 79 posts

Re: Qt for Android better than ever before

#71

Earlier quoted context omitted.

Electron does allow to use c++, what make QT c++ more practical for business logic?

The things that are missing in standard C++: Unicode, SQL, filesystem (kind of fixed in C++20 or so), serialization, network protocols, JSON, XML, an event loop(!), signals and slots, a thread pool, compiled-in resources, runtime plugin support, etc

Thanks for exemplifying! Nit: filesystem is fixed in C++17.

Re: Qt for Android better than ever before

#72

Earlier quoted context omitted.

The things that are missing in standard C++: Unicode, SQL, filesystem (kind of fixed in C++20 or so), serialization, network protocols, JSON, XML, an event loop(!), signals and slots, a thread pool, compiled-in resources, runtime plugin support, etc

Thanks for exemplifying! Nit: filesystem is fixed in C++17.

I’d add that passing objects is also way easier when you do not need to bridge languages. And you avoid gyp.

Re: Qt for Android better than ever before

#73
post #55

Earlier quoted context omitted.

I read somewhere a few months back that qt is dropping qmake in favour of cmake in the medium term. And everyone rejoiced.

That's a step in the right direction. The next thing would be to drop the compiler extensions (signal/slots macros) in favor of modern C++.

Already done by CopperSpice.

Re: Qt for Android better than ever before

#74
post #55

Earlier quoted context omitted.

I read somewhere a few months back that qt is dropping qmake in favour of cmake in the medium term. And everyone rejoiced.

That's a step in the right direction. The next thing would be to drop the compiler extensions (signal/slots macros) in favor of modern C++.

Verdigris is a moc replacement (not a Qt fork like CopperSpice) which generates QMetaObject through macros using constexpr.

Re: Qt for Android better than ever before

#75
post #14

What are the technical reasons to prefer Qt over JavaFX[1]? Even Bitwig Studio, which is a C++ audio application, went with JavaFX for its cross-platform UI. It can also be written in React-like declarative style[2], which is much easier to maintain. [1] https://openjfx.io/ [2] https://github.com/cljfx/cljfx

No Oracle dependencies?

JavaFX as of JDK 11 (the next LTS after JDK 8) is now part of OpenJDK. It's still released separately, rather than integrated like Swing is.

https://en.wikipedia.org/wiki/JavaFX

OpenJDK is now the 'official' JDK and reference implementation with Oracle making proprietary forks for their own customers, supported on their own timelines.

Java is actually doing some really interesting things since Java 9, with modular runtimes, pluggable garbage collectors, new compilers (Graal) and the Clojure crowd are being swept along with it simply by stint of being on the JVM.

Re: Qt for Android better than ever before

#76
post #55

Earlier quoted context omitted.

I read somewhere a few months back that qt is dropping qmake in favour of cmake in the medium term. And everyone rejoiced.

That's a step in the right direction. The next thing would be to drop the compiler extensions (signal/slots macros) in favor of modern C++.

There is sadly no reflection nore code generation yet in C++ so that cannot work without lots of ugly macros.

Re: Qt for Android better than ever before

#77
post #17

I've been getting more and more interested with qt development. As a linux user, I'm exhausted from the bloat and cycle stealing electron apps ( with VSCode being a notable exception to this rule). But more recently, the idea of writing one app in Qt, running it everywhere between Android, a Librem 5, and desktop platfoms is really exciting.

That was the main idea behind Pyre-Qt, but dynamic media resizing is not well supported in Qt unless you pull in a web view (at which point you've recreated Electron). https://pyre.chat One fork of Pyre does this using a web view, and it fixes the media scaling bug, but what is the advantage over Signal Desktop at that point (besides being a tray icon & having native integration)? Edit: Capitalization

What about qml?

Re: Qt for Android better than ever before

#79
post #53

If you were to make a list, building the damn thing would probably come last. Go to the store on your favorite platform, search "The Qt Company" and try some of their demo apps. It's all complete dog. Looks terrible, behaves worse. It's like Flutter except with 1/100th of the developer firepower to make sure it behaves natively. My personal favorite is the input controls. They haven't freaking implemented copy and pa…

> My personal favorite is the input controls. They haven't freaking implemented copy and paste! It is all just beyond unusable.

What are you talking about? Qt Widgets and Qt Quick Controls (QML) have always supported copy and paste.

Post reply on HN