5 ms·
Does anyone else think that QT is mostly overkill and HTML is good enough in most cases?
by singularity2001 3y ago
Does anyone else think that QT is mostly overkill and HTML is good enough in most cases?
- flohofwoe 3y agoThe traditional widget-based Qt up to 4.x was a pretty good application development framework (not just a UI framework). From that point of view, both "modern" Qt and HTML are overkill.
- speed_spread 3y agoFunny because I think HTML is overkill and QT is good enough. HTML meaning that your app runs in a browser, which generally uses much more resources than a QT app.
- guappa 3y agohtml doesn't have events that can be connected to actions. Doesn't resize decently, doesn't respect user's settings. And a browser is much much slower and bigger than a qt application.
- mildmotive 3y ago> Doesn't resize decently, About HTML+CSS, that’s just incorrect. Go and try Tailwindcss and then tell me how bad HTML is at resizing. https://tailwindcss.com/docs/responsive-design https://tailwindcss.com/docs/responsive-design
- guappa 3y agoWell in Qt layouts are native, no need of using an external project.
- mildmotive 3y agoTailwindcss makes using CSS easier, it’s still CSS underneath, which you can interface with directly if you want. For medium to large applications it takes quite a bit of work to give your Qt GUI a custom style, and do it right. This isn’t something you can hand wave away.
- agent327 3y agoNo, just the other way around in fact. Qt applications don't come with a starting requirement of ~300MB just for the mandatory webbrowser - before adding any of your own code.
- prewett 3y agoHTML was designed for documents, which it does adequately. But for an actual UI, you need to be able to position things easily. HTML/CSS just has all these gotchas all over the place because the defaults are just unsuitable for UI. If you work hard enough you can something working, but QLayouts are so much easier. Then after that you have to work in a language that makes every error a runtime error and doesn't even distinguish between between float and int. Which you can work around by adding another layer, namely TypeScript. All these layers just add the complexity. Qt Widgets is one of the best-designed UI APIs. I've kind of given up on Qt, though: - they seem to want to go in the QML direction, and if I wanted to use JS I wouldn't be using a C++ library - their interpretation of LGPL has historically required making the entire Qt library downloadable from your website, which is inconvenient. (This may have changed with Qt 6?) - it never looks or works quite right on macOS. In particular, text in comboboxes is just not centered vertically correctly, and it drives me nuts.