4 ms·
I started playing with QT last week. QML is great. Is the QT team working on official React API support with JSX ? This will make universal UI development a br
by crudbug 11y ago
I started playing with QT last week. QML is great.
Is the QT team working on official React API support with JSX ? This will make universal UI development a breeze.
- ronjouch 11y agoNothing from the Qt Company itself, but there are some community initiatives around what you're mentioning. This recent mailing list thread mentions a few of them, especially quickflux by community contributor Ben Lau. However, nothing like what you're asking for, QML is clearly not moving in this direction. - http://lists.qt-project.org/pipermail/development/2016-March/025225.html http://lists.qt-project.org/pipermail/development/2016-March... - https://github.com/benlau/quickflux/ https://github.com/benlau/quickflux/ Now, regarding what's actually being done by Qt Company on the UI side, there are the new qtquick controls (currently namespaced to 'labs' as it's still a work in progress), see https://www.youtube.com/watch?v=FqjabvHSiZk https://www.youtube.com/watch?v=FqjabvHSiZk and http://blog.qt.io/blog/2015/11/23/qt-quick-controls-re-engineered-status-update/ http://blog.qt.io/blog/2015/11/23/qt-quick-controls-re-engin...
- crudbug 11y agoThanks for the links. The QuickFlux is promising start for the Flux pattern in Qt. I was thinking more on the lines of React Native [1] like support in Qt. Essentially, having React render() function backed by Qt Quick Controls? [1] https://facebook.github.io/react-native/ https://facebook.github.io/react-native/
- ronjouch 11y ago> QuickFlux is promising start for the Flux pattern in Qt. I was thinking more on the lines of React Native [1] like support in Qt. I know :) , and I searched for that too when I joined a QML project after working on a React one. So far there's nothing like that, thus the "around" in my comment. Now, about why no one tried that yet, I'd propose that newcomers (including me) want it but don't know the platform well enough to build it, and experienced C++/Qt-ers could try it, but they don't care about new frontend stuff like React the slightest bit, as they are used to their own thing (which works well too!). It's just two different technical worlds with different working solutions, and little interest to pick ideas from the other side of the fence. That being said, I'd love to be proven wrong.
- crudbug 11y agoI am on the same boat with you. C/Java/JavaScript background. I hope someone cracks this soon.
- benlaud 11y agobtw, why you want render() in another framework? Not exactly the same as React render(), I have started an experimental project to update QML UI by diff: QSyncable - Synchronize data between models https://github.com/benlau/qsyncable https://github.com/benlau/qsyncable p.s In fact, Qt Scene Graph is somehow similar to React. Both of them will only apply the changes to screen. React manipulates the DOM, but Qt manipulates the OpenGL render pipeline.