4 ms·
No(t yet), i've focused on the traditional desktop Widgets toolkit. There are other existing QML/Go bindings you might be interested in. Qt Widgets has a lot o
by mappu 2y ago
No(t yet), i've focused on the traditional desktop Widgets toolkit. There are other existing QML/Go bindings you might be interested in.
Qt Widgets has a lot of benefits over QML. It is native compiled code whereas QML is interpreted; the native compiler (qmlsc) is proprietary and only available for commercial licensees. If you are happy with a large runtime for an interpreted UI then I'd suggest looking at web technology (e.g. Wails) to enjoy the broader ecosystem effects.
- foresto 2y agoAlso, QML exposes only a fraction of the functionality of the Qt Widgets API.
- bmitc 2y agoAnd vice versa.
- rubymamis 2y agoFirst of all, I wrote a block editor in QML[1] (the model in C++) that far outperform QTextEdit (part of Qt Widgets) at loading, scrolling and word-wrap resizing of very large documents (think, War and Peace) *with* the additional cost of being a block editor that can include a Kanban board, images, etc. So saying QML isn't performant is incorrect. Secondly, my knowledge about the internal build tools such as qmltc, qmlcachegen, and qmlsc is quite limited, but isn't qmlcachegen also compiles QML documents[2]? And don't forget that the built-in Qt Quick components are either compiled to C++ or written natively in C++. [1] https://get-notes.com/ https://get-notes.com/ [2] https://doc.qt.io/qt-6/qtqml-qtquick-compiler-tech.html#summary https://doc.qt.io/qt-6/qtqml-qtquick-compiler-tech.html#summ...
- mappu 2y agoYour app looks really nice, I like the smooth animations in the web demo. A benefit of QML is that more of the rendering is done on the GPU, so the performance may differ depending on hardware. qmlcachegen produces only bytecode, not compiled code.
- rubymamis 2y agoThanks! > qmlcachegen produces only bytecode, not compiled code. Ho gotta. But I still wonder what's the additional performance boost qmlsc will give. I should test this some day. Btw, are you on some social site? X? Discord? Would love to say in touch.
- bmitc 2y agoDo you mind me asking if you work full-time on your app, or is it passive income? The drag and drop looks really nice! Do you have some hints as to how you accomplished that with QML?
- rubymamis 2y agoI used to earn passive income from its previous version, which is open source and is now a different project[1] by having ads on the website. It wasn't much but around $2000 a month semi-consistently across 5 years (sometimes more, sometimes less). A lot of traffic is coming from Google searches 20k-60k monthly (it varies). With Daino Notes I was hoping to focus on subscription more but since paid subscription isn't quite growing as much as I anticipated (although usage is quite high), I reenabled ads again. It doesn't quite cover the bills these days so I'm thinking about getting a job (if you know someone, HMU). > Do you have some hints as to how you accomplished that with QML? I'll publish a detailed blog post about the entire development journey very soon. You can hit me up on X (@mamistvalove) or Discord (@rubymamis) and I can send you a draft, if you like. [1] https://www.notes-foss.com/ https://www.notes-foss.com/
- p0w3n3d 2y agoI'm really happy to see people _Make Qt Great Again_. This was my first framework I've ever worked as a professional, and it was really good. Moreover I'm a really big fan of natively written windows/linux/mac apps (as opposed to something that will launch a fully fledged browser and consume ~500MB at start). It's really depressing how we all strive to have everything on the web, in the cloud, etc., but have nothing on our own. I still tend to write quick applications in PySide (free Qt for Python) that stay in my tray, behave very well, are very quick, and occupy about 60MB instead.
- bmitc 2y agoQt Quick doesn't launch a browser.