Re:Qt or HTML5? A Million Dollar Question
by majewsky on Tuesday February 20, 2018 @04:49AM
(#16419049)
I actually just migrated a small Rust application to C++ with Qt because I have to use DBus and Qt has a very nice DBus library, which Rust has not. (In general, DBus hates runtime environments that don't have an event loop.)
Re:Qt or HTML5? A Million Dollar Question
by ahartmetz on Tuesday February 20, 2018 @09:37AM
(#16420568)
It's pretty hard to have asynchronous calls without an event loop ;)
Using DBus synchronously is, strictly speaking, wrong unless you can PROVE that there can be no deadlocks; talking to the DBus daemon itself synchronously is generally safe though. Unfortunately QtDBus encourages synchronous calls. Maybe you remember desktop hangs in early KDE 4 related to global shortcuts - that was me not knowing that rule at the time.
When you code in Qt you rarely, if ever, are exposed to the hairy parts of C/C++. If anything, it feels like coding in C#. Nesides UI there are a gazillion helper and utility classes for everything from networking to threading to string handling. And with QML there's even less C++ :)