Here is a demo of a QML sandbox in the browser using Qt+Emscripten if you are interested[1]. And the blog post in which I wrote about it[2]. It's quite big and not very well performing, but Qt might be useful for larger web apps one day.
[1] http://ovilab.net/projects/qt-emscripten/qml-sandbox/ [2] http://dragly.org/2016/04/27/experimental-qt-and-qml-in-the-...
Re:Qt Quick Controls 2.1 and Beyond
by dragonshed on Thursday October 06, 2016 @03:16PM
(#12655237)
Funny, I recently looked into using QML & Qt Quick as a lightweight alternative to electron, and although there are some promising factors with the approach, it became apparent that things would take a lot more work and experimentation than simply using electron.
A nimble, feature-complete starter client that is fully scriptable with javascript, i.e. qmlscene without the rough edges, would be ideal.
Is this due to unfamiliarity / learning curve with the technology or limitations found using Qt Quick? Because what you're describing sounds an awful lot like the base example when starting a new Qt Quick application project.
Re:Qt Quick Controls 2.1 and Beyond
by ComodoHacker on Thursday October 06, 2016 @02:45PM
(#12654953)
I hope in that universe everybody won't be downloading a copy of Chromium/Webkit/whatever with every desktop app.
Re:Qt Quick Controls 2.1 and Beyond
by winter_blue on Thursday October 06, 2016 @03:54PM
(#12655539)
The GP said "I dream of the inverse of the react native or electron trend".
That means no Chromium or other bundled web browser with every desktop app.
With Qt, you app will be light-weight, blazing fast, and have a native look and feel (as Qt uses native widgets whenever possible).
React Native doesn't bundle a web browser. It uses native widgets.
Qt already bundles QWebEngine, which is essentially a copy of Chromium
Re:Qt Quick Controls 2.1 and Beyond
by santaclaus on Thursday October 06, 2016 @04:37PM
(#12655892)
Are all Qt apps shipping and linking against QWebEngine though?
Not if you don't explicitly link against the relevant modules. That is usually done by adding a few entries in the Qt project file (qmake) and then including the headers.
http://doc.qt.io/qt-5/qtwebenginecore-module.html http://doc.qt.io/qt-5/qtwebenginewidgets-module.html
Re:Qt Quick Controls 2.1 and Beyond
by ComodoHacker on Friday October 07, 2016 @03:19AM
(#12658790)
I'm looking at 32M Qt5WebKit.dll shipped with Zeal. Is this it?
Re:Qt Quick Controls 2.1 and Beyond
by jordanbaucke on Thursday October 06, 2016 @01:21PM
(#12654241)
agreed.
Even using React, Redux, flexbox layout and all these fancy frameworks, I still find the web stack a huge hack that tries to bend HTML and CSS to recreate the feeling of an app (like SPAs). QML is simply more expressive for layouts and bindings.