r/programming • • Dec 08 '20

Qt 6.0 Released

https://www.qt.io/blog/qt-6.0-released
664 Upvotes

229 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Dec 08 '20

[deleted]

0

u/[deleted] Dec 08 '20

[deleted]

27

u/afiefh Dec 08 '20

Funny, I seem to be able to install SpeedCrunch and Qbittorrent without downloading all of Qt. Maybe you're just bad at packaging?

0

u/[deleted] Dec 08 '20

[deleted]

0

u/[deleted] Dec 08 '20

[deleted]

5

u/jcelerier Dec 08 '20

In practice you run windeployqt/macdeployqt/linuxdeployqt on your app after building it and it just copies the .dlls / .dylibs / .so that you use

11

u/babypuncher_ Dec 08 '20

At the end of the day, kcalc uses considerably fewer resources than any comparable calculator made in Electron could even get close to.

-2

u/BarMeister Dec 08 '20

Yet we do, proving that the majority of developers are spoiled, entitled people whose teams compete in who can waste more of your battery. A vicious cycle starting and ending on the dogmatic one liners surrounding performance every incompetent moron likes to shout in these discussions to justify their perfectly looking but horribly slow crapware.

-40

u/jl2352 Dec 08 '20

You may not like his opinion, but he is mostly right.

The desktop world has shifted heavily towards Electron.

39

u/flying-sheep Dec 08 '20

The “legacy” part is bullshit. There’s quite a few of them, but whenever there’s an adequate non-Electron alternative, I use that instead. I use the Electron applications:

  • Hamsket (Rambox fork)

  • VS Code

  • Discord

And the Qt applications

  • KDE Plasma and all the KDE applications I use (not even using multiple entries here)

  • Krita

  • Calibre

  • VLC

  • RStudio

  • Wireshark

  • Zoom

  • And of course all kinds of small stuff that would be complete overkill and waste of memory to do in Electron

0

u/[deleted] Dec 08 '20

[deleted]

8

u/r00x Dec 08 '20

They might not, but anecdotally, I'm inclined to agree. Seeing a whole lot of Electron/NW.js type apps these days.

24

u/Illusi Dec 08 '20 edited Dec 08 '20

And how many Qt apps do you see? On my task bar right now I have:

  • 5x GTK (Files, Firefox, Terminal, TextEditor, Deluge)

  • 3x Qt (Clementine, OpenSCAD, Cura)

  • 2x Swing (PyCharm, Netbeans)

  • 1x Electron (Tutanota)

  • 1x WxWidgets (Veracrypt)

It's harder to spot Qt since it tends to just work rather seamlessly and has system theming. Electron apps are quite recognisable as being Electron apps, so they might be more salient, but they are not as ubiquitous as Qt.

8

u/Username_RANDINT Dec 08 '20

Not that it really matters or changes the sentiment of your post, but Deluge is written in GTK. It's just that I looked at their source a lot in the past.

3

u/Illusi Dec 08 '20

Oh, seems you're right. I looked up several of the ones I didn't know. For some reason I thought Deluge was using PyQt and I didn't need to look it up.

-1

u/[deleted] Dec 08 '20

Exactly, it's obviously your experience that's universal!

-21

u/exlevan Dec 08 '20

72

u/[deleted] Dec 08 '20

Languages like C and C++ use a technology known as a linker whose purpose is to only include functionality that is used by an application into the executable. The JavaScript portion of Qt is distributed in a library of its own referred to as QtScript which is excluded from applications that don't make use of it.

This is in contrast to Electron which must include the entirety of the Chromium build in every single application distribution.

1

u/[deleted] Dec 09 '20

I think you missed the point - all QML apps use JavaScript. They're planning on relaxing that requirement but as it stands, if you develop a Qt app in the recommended way, you are shipping a JavaScript engine.

In fact the hello world QML app is actually not that much smaller than Electron.

23

u/kageurufu Dec 08 '20

I can use Qt to make a quick (and pretty) cross platform UI in a few minutes, and not include the Javascript runtime...

18

u/[deleted] Dec 08 '20 edited Dec 08 '20

I think you're overestimating the complexity of a basic javascript implementation.

7

u/del_rio Dec 08 '20 edited Dec 08 '20

Not him but there's a uniquely reddit/4chan-centric overlap between critics of Electron and programmers who really hate JavaScript on principal.

EDIT: look no further than the bottom of this very comment chain

2

u/flying-sheep Dec 08 '20

Browsers are completely different league.