News for hackers. Stuff that matters.
Re:Qt Creator 4.7.0 released by remoroid on Wednesday July 18, 2018 @07:18PM (#17562839)
Yep, if you can even compare Electron to Qt. Electron is just a buggy ill-conceived hack to wrap a browser with nodejs to make webpages. All it provides is a blank window with no customisation and a huge size and memory overhead.
Re:Qt Creator 4.7.0 released by dilap on Wednesday July 18, 2018 @10:52PM (#17563637)
I hate the slowness and bloat and entire ideology behind electron, BUT...electron apps do a pretty decent job of feeling native on the platform. Something I've never seen a Qt app do.

Would love a counter-example, if you've got one. I'm on a mac.

Re:Qt Creator 4.7.0 released by zx2c4 on Thursday July 19, 2018 @07:25AM (#17565329)
I can't think of a Qt app that looked odd on macOS. I've developed quite a few pieces of software in Qt for the mac, and they all perfectly use the OS's styles and colors.
Re:Qt Creator 4.7.0 released by dilap on Thursday July 19, 2018 @09:57AM (#17566286)
Is any of the software publically available? I will critique it.
Re:Qt Creator 4.7.0 released by therockhead on Thursday July 19, 2018 @11:40AM (#17567330)
I know Viber is written in QT, it does not look native on macOS.
Re:Qt Creator 4.7.0 released by cpburns2009 on Thursday July 19, 2018 @11:38AM (#17567301)
What Electron applications feel native on any platform? I use Discord and it feels and looks like a web-page, not a Windows application.
Re:Qt Creator 4.7.0 released by dilap on Thursday July 19, 2018 @03:07PM (#17569368)
I feel like slack is decent. It definitely feels like a webpage, but the embedded UI elements are good -- the text boxes support all the MacOS shortcuts, you can insert special characters using the character viewer, text selection works properly, the menus aren't weird.

I guess maybe I'm just so used to web stuff now that that codes as "native enough" to me?

Re:Qt Creator 4.7.0 released by setr on Thursday July 19, 2018 @02:16PM (#17568965)
interestingly, it looks and feels like an electron web-page. They're all following their own little paradigm now..
Re:Qt Creator 4.7.0 released by ahartmetz on Thursday July 19, 2018 @03:47AM (#17564524)
It's only a problem on Mac.

Windows native apps all look different anyway and Qt is native on Linux.

Re:Qt Creator 4.7.0 released by remoroid on Thursday July 19, 2018 @08:20AM (#17565551)
I wouldn't know, dont have a mac. But VLC is my best guess at polished software that should look good on mac. If it doesnt... ;/
Re:Qt Creator 4.7.0 released by dilap on Thursday July 19, 2018 @03:09PM (#17569385)
I don't think VLC is using Qt!
Re:Qt Creator 4.7.0 released by remoroid on Thursday July 19, 2018 @07:23PM (#17571231)
Yessss it is. The gui is written in Qt c++ and all the processing backend is C.

https://github.com/videolan/vlc/tree/master/modules/gui/qt

Re:Qt Creator 4.7.0 released by dilap on Thursday July 19, 2018 @07:50PM (#17571367)
Only for nix -- for the Mac, it's using native widgets, if I'm not mistaken:

https://github.com/videolan/vlc/tree/master/modules/gui/maco...

(Which is pretty damning -- they already had a Qt implementation, but would rather do real native!)

Re:Qt Creator 4.7.0 released by remoroid on Thursday July 19, 2018 @10:27PM (#17571992)
Ouch. Mac for Qt is definitely the weakest point. Theres some experimental work being done to allow developers to wrap native Mac controls. http://blog.qt.io/blog/2017/02/06/native-look-feel/
Re:Qt Creator 4.7.0 released by dilap on Friday July 20, 2018 @12:07AM (#17572385)
This would help a lot, I think. Still a going concern, or a dormant experiment?
Re:Qt Creator 4.7.0 released by remoroid on Friday July 20, 2018 @12:33AM (#17572482)
Its targeted for Qt6, which is not coming anytime soon, but it gives me hope that Qt always has smart options to move on.
Re:Qt Creator 4.7.0 released by ralusek on Wednesday July 18, 2018 @08:13PM (#17563105)
VSCode, Figma.
Re:Qt Creator 4.7.0 released by FridgeSeal on Wednesday July 18, 2018 @08:20PM (#17563139)
I've never heard of Figma, but the reason VSCode is as good as it is now is because it's has had increasing parts of it being re-written in C or C++ along with other extensive performance modifications to the electron runtime by the vscode team.
Re:Qt Creator 4.7.0 released by dabber on Wednesday July 18, 2018 @10:13PM (#17563508)
> the reason VSCode is as good as it is now is because it's has had increasing parts of it being re-written in C or C++

Is that true? I've heard that said before but I've also heard that's not true. I haven't been able to find anything indicating any parts of it are written in C/C++ either. The GitHub repo for VScode doesn't have any C in it; infact it doesn't have much but JS/TS:

https://github.com/Microsoft/vscode

Re:Qt Creator 4.7.0 released by chx on Wednesday July 18, 2018 @10:23PM (#17563546)
I do not know vscode but Atom's C++ parts are in a separate repo https://github.com/atom/superstring
Re:Qt Creator 4.7.0 released by Matthias247 on Wednesday July 18, 2018 @11:59PM (#17563855)
I agree. Afaik the core of the editor logic in VsCode is all typescript.

There are some native parts, like obviously electron. And I think the find-in-files function uses ripgrep, which is written in rust. But that's a far stretch from "increasing parts of it being re-written in C or C++".

Re:Qt Creator 4.7.0 released by systems on Wednesday July 18, 2018 @11:56PM (#17563844)
not always true, sometimes they use better data structures

https://code.visualstudio.com/blogs/2018/03/23/text-buffer-r...

Re:Qt Creator 4.7.0 released by dabber on Thursday July 19, 2018 @10:25PM (#17571983)
That's a really interesting link; thanks.