3 ms·
Cool.. I guess but I just wonder.. is writing the UIs in code an actual practice that people do these days? I program (mostly) in C++ using Qt for my UIs and I
by samiv 1y ago
Cool.. I guess but I just wonder.. is writing the UIs in code an actual practice that people do these days?
I program (mostly) in C++ using Qt for my UIs and I just use the Qt Designer to visually drag and drop to build my UIs and the actual code gets generated by the tool.
Fast and simple.
- zero-st4rs 1y agoPretty cool! I've heard a lot of good things about Qt.
- sunrunner 1y agoAs an end user, what's the licensing situation like with Qt? I was looking to build a cross-platform desktop application (down the rabbit hole...) and was frustrated with the number of options that were just a web view of some sort and some bindings to a JS/TS framework of your choice (I don't have one and don't really want to have to use one or bundle it with the application). Qt looked interesting, particularly with the concise syntax afforted by QML and QtQuick, but the licensing was off-putting and even just getting access (for a non-commercial project for example) seemed to require an awkward sign-up and some kind of installer. I crave the conciseness and simplicity of something like SwiftUI but the options for doing that in a cross-platform way seem limited.
- samiv 1y agoIt's double licensed. The Qt Company offers both a commercial and LGPL license but they do their best to bury and hide the LGPL option and use dark patterns to try to trick one to get the commercial license. They also want to push you towards getting an account with them for the installer. That being said the packages (without online installer) are also available for direct download when you know where to look... [see link below] If you're on Linux though the situation is much simpler since your distribution most likely already packages the Qt libs so you just use your package manager to install them and off you go... Regardless, for anyone looking for a native portable toolkit, I don't really think there's anything that comes close to Qt in terms of functionality and tooling (like Qt Creator and Qt Designer) and once you get over the idiosyncrasies and quirks its really quite good (for the most part). https://download.qt.io/official_releases/qt/ https://download.qt.io/official_releases/qt/
- sunrunner 1y agoI'm on macOS a lot of the time so I did get to the installer part and immediately stopped as it felt like LGPL-licensed software should be accessible without needing an account, an installer (is it useful?) or anything except allowing the end user to access libraries and headers directly.
- samiv 1y agoFor the developer that knows what they're doing the installer is not absolutely necessary, you can just download the zip (or tar.gz) and extract the whole thing somewhere and go from there. The installer does provide some more advanced features such as selecting feature by feature and version by version which Qt components you want to install. At least this is how it works on Windows, I expect Mac to behave similarly. For the end user of your product you'd of course package your software with the Qt libs (or integrate the Qt installation process in your application installation process) so that the end user doesn't need to know nor care about Qt installation at all.
- teaearlgraycold 1y agoMost UIs are made with web technologies without WYSIWYG. And now quite a lot of UIs on desktop are made with web tech.
- deleted 1y ago[deleted]
- Klonoar 1y agoAlmost everywhere and everything I’ve worked on that had a UI layer has eventually - if it didn’t start there - landed on just managing the UI in code itself.