4 ms·
I mean every UI software, even the ones built into the different OS's has bugs like these. So what is the alternative? Throw Chromium into the code and build th
by dubcanada 2y ago
I mean every UI software, even the ones built into the different OS's has bugs like these. So what is the alternative? Throw Chromium into the code and build the UI with HTML and C++ backend? JUCE or some other UI package?
There really is not a ton of other options.
I think for most companies, paying for QT and maybe a few extra for bug fixes as needed makes sense. And lets you tone down the hardware expenses that say Chromium would require.
- ghosty141 2y agoIt obviously depends on your needs, if your software needs complex controls, responsive layouting and tries to achieve a smartphone-type UI, then yes I using chromium is the way to go with a c++ backend that does the heavy lifting. Qt has a big advantage if your content is rather static and you can just top-down layout everything via anchors and rather fixed positions. But in those cases you also generally don't use complex controls that layer ontop of each other. In my opinion it should be communicated quite clearly that QML is very good for "small" embedded UIs like for general home appliances, but if you are planning to create a rather complex application with demands like responsive layouting, custom data structures, interfacing with existing apis, then you far better off just using chromium with a custom backend. That has far less UI-breaking bugs. Qt accidentally COMPLETELY broke lighting in Qt3d: https://bugreports.qt.io/browse/QTBUG-100402 https://bugreports.qt.io/browse/QTBUG-100402 That's something I find completely unacceptable and I haven't encountered something that application-breaking in chromium (yet).
- zerr 2y agoOr just use Qt Widgets? Yes, the default sizes and styling might not be suitable but these are easily and fully customizable. The one disadvantage is that Widgets is not hardware accelerated.
- ghosty141 2y agoWidgets seem far more robust and tested but from what I‘ve gathered pretty suboptimal for touch-first UIs and more modern design. For the desktop I would 100% use Widgets over QML.
- lukeh 2y agoFlutter is another option for embedded.
- joezydeco 2y agoGoogle continually lets the embedded community down. You can promise this time won't be the same, but I don't trust them anymore.
- tempcommenttt 2y agoIf youre a python dev, pygame is an often overlooked option, it’s quite nice if you're targeting a specific screen resolution. I’m using it in production….