News for hackers. Stuff that matters.
Re:Slack Says It's Filed to Go Public by gfwhukku on Monday February 04, 2019 @03:49PM (#19080479)
Qt is not native.

Native doesn't mean "it's not written in JS" or "it's fast". Native means "it uses the GUI toolkit of the target platform". And Qt doesn't do that, it merely mimics its appearance.

Re:Slack Says It's Filed to Go Public by IshKebab on Monday February 04, 2019 @04:20PM (#19080751)
You are incorrect. Toolkits like Qt are exactly what people are talking about when they say "native". How many apps do you think still use X11 graphic primitives? Did you even know they exist? How many programs use native Win32 controls? Not even Microsoft does that anymore.
Re:Slack Says It's Filed to Go Public by donio on Tuesday February 05, 2019 @02:51AM (#19083642)
> How many apps do you think still use X11 graphic primitives?

Good question. Let's see, what are the GUI programs that I use every day... Emacs, exwm (separate X client so I guess it counts even if elisp), st, chromium, mpv, mupdf, conky. That's 6 out of 7, so I guess the answer is most of them?

(Emacs is built with --without-x-toolkit)

Re:Slack Says It's Filed to Go Public by therockhead on Tuesday February 05, 2019 @08:38AM (#19085121)
Hmm, I do not consider an Qt app on macOS to be native.
Re:Slack Says It's Filed to Go Public by gfwhukku on Monday February 04, 2019 @04:23PM (#19080769)
>How many programs use native Win32 controls? Not even Microsoft does that anymore.

So because Microsoft has lowered the bar, now everything can be called "native"? There's a reason many people hate UWP.

Re:Slack Says It's Filed to Go Public by johncolanduoni on Monday February 04, 2019 @06:01PM (#19081556)
Not using native Win32 HWND based controls does not imply UWP. Virtually every program that was made for Windows XP and later does not use native Win32 controls; this includes “outdated” frameworks like WinForms.

X11 and Win32 UI are actually fairly similar in this respect.

Re:Slack Says It's Filed to Go Public by magicalhippo on Monday February 04, 2019 @09:54PM (#19082712)
Actually the VCL[1], shipped with Delphi, does to a large extent use the native Win32 controls. They've added some quality of life stuff on top of them, but the TEdit component[2] is a wrapper around the Win32 edit control etc.

Delphi is not so popular these days, but there still is a fair share of Delphi programs running.

[1]: https://en.wikipedia.org/wiki/Visual_Component_Library

[2]: http://docwiki.embarcadero.com/Libraries/Seattle/en/Vcl.StdC...

Re:Slack Says It's Filed to Go Public by nineteen999 on Monday February 04, 2019 @04:23PM (#19080767)
Which is the native GUI toolkit of Linux/UNIX? Athena? Motif? GTK+?
Re:Slack Says It's Filed to Go Public by gfwhukku on Monday February 04, 2019 @04:24PM (#19080772)
None, unfortunately. You have X11, but nobody uses that anymore.
Re:Slack Says It's Filed to Go Public by nineteen999 on Monday February 04, 2019 @04:25PM (#19080783)
Yeah, the question was tongue in cheek. Which one do we use then?
Re:Slack Says It's Filed to Go Public by gfwhukku on Monday February 04, 2019 @04:27PM (#19080807)
I guess the best option is GTK+ because of the number of users?

There are themes that mimic GTK apps on Qt and vice versa and they look like crap.

But in my opinion Qt apps also look like crap on Windows and Mac. They look somewhat like a native app, but everything is off.

For example, if you have a Qt app on Windows and you click a menu separator, the menu closes, <s>like it would do on Mac</s>. On Windows, clicking a menu separator should do nothing, the menu should remain open. There are dozens of little annoyances like that. Not to mention padding/spacing of elements, etc.

Of course, Qt is very useful. I've worked with it (using QWidgets) and I've liked it a lot, despite of its drawbacks. But it's certainly not native. It merely emulates the target interface.

Re:Slack Says It's Filed to Go Public by rsfinn on Monday February 04, 2019 @05:11PM (#19081147)
I'm reading this on a Mac; I clicked on the File menu in Safari, then clicked a menu separator, and the menu remained open.

This does not, of course, invalidate your main point in any way. (I also currently have p4v open on another display, and, well.)

Re:Slack Says It's Filed to Go Public by darkengine on Monday February 04, 2019 @04:17PM (#19080724)
GTK isn't any more "native" than Qt -- they're both abstractions atop X (or Wayland, or Broadway).