News for hackers. Stuff that matters.
Re:How to architect a Qt/C++ Application by mitgraduate on Tuesday January 08, 2019 @06:11AM (#18854742)
I just want to ask, why?

Today we've a superior technology like Electron. Why should we use old technology like Qt?

VSCode is built in Electron.

Re:How to architect a Qt/C++ Application by de_watcher on Tuesday January 08, 2019 @06:41AM (#18854860)
Electron is not superior. Web grew because of the great "application delivery" system and despite everything else that originated from the static web. By having huge number of js developers the thing was forced to do other tasks. Now with Electron it may as well do desktop apps (by removing the awesome "application delivery" system; isn't that funny?). Its only advantage is that you've got lots of js developers.

The "new" js desktop technology is new only in the sense that js is new to the desktop (so it still doesn't really know about all the desktop requirements). Same for servers: there are better tools for the job from the purely technical point of view.

Re:How to architect a Qt/C++ Application by vhakulinen on Tuesday January 08, 2019 @06:17AM (#18854766)
How exactly is Electron superior?

> VSCode is built in Electron.

So is slack, which (from what I've heard, I have no personal experience) eats RAM like a maniac. Neither of these example applications tips the scale between Qt or Electron on being superior.

Again, based on what I've heard/read, Qt being less recourse hungry and written in C++ allows it to be (for example) embedded (to cars or iot devices, for example).

Re:How to architect a Qt/C++ Application by geezerjay on Tuesday January 08, 2019 @06:41AM (#18854863)
> Today we've a superior technology like Electron.

If there is anything superior to Qt, Electron clearly aint it.

Re:How to architect a Qt/C++ Application by dasloop on Tuesday January 08, 2019 @06:25AM (#18854805)
Why Electron is superior? We do mobility simulation and the UI part is the minor of our concerns. We are focused in modelling capabilities and performance (so C++). Having a solution that uses the same language across all the application layers help us a lot.
Re:How to architect a Qt/C++ Application by 0xfeba on Tuesday January 08, 2019 @09:09AM (#18855570)
> VSCode is built in Electron.

And it takes up 3GB of RAM on my 8GB machine.

Re:How to architect a Qt/C++ Application by detaro on Tuesday January 08, 2019 @06:19AM (#18854772)
Because Electron is not "superior". Both have their strengths and weaknesses, and which one is the right choice depends on what you're doing and what your existing skills and components are.
Re:How to architect a Qt/C++ Application by pjc50 on Tuesday January 08, 2019 @06:28AM (#18854820)
QT gives you a native-ish RAM-efficient GUI across a wide range of systems.
Re:How to architect a Qt/C++ Application by artemsyd on Thursday January 10, 2019 @03:10PM (#18877595)
I thought QuickTime Player is only available on Mac OS nowadays.
Re:How to architect a Qt/C++ Application by seren on Tuesday January 08, 2019 @08:07AM (#18855243)
In the embedded world, you have much more chance to run QT than Electron, because QT also supports RTOS like VxWorks or QNX.
Re:How to architect a Qt/C++ Application by blattimwind on Tuesday January 08, 2019 @12:11PM (#18857210)
Qt also has a renderer that's simply superior by design for embedded use cases. A web engine has to bent over backwards to do anything comparable.
Re:How to architect a Qt/C++ Application by ahartmetz on Tuesday January 08, 2019 @12:58PM (#18857693)
Yes. HTML + DOM + CSS + JS was not created to write interactive applications, and it still shows. Most of the inconvenience can now be worked around with frameworks, but a large performance penalty remains. And Moore's Law is over.