Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
akreuzkamp
@akreuzkamp
@AlanU There are plans to support everything that is possible.;) QML DropArea is possible and definitely desireable, but I think nobody is working on it currently.
Stephen D'Angelo
@stephenmdangelo
@sawyerlin sorry, gitter failed to notify me about this message. What is the context of reducing loading times? Is it a qmlweb application or just a C++ Qt/QML application?
AlanU
@AlanU
@sawyerlin I want to move my QML application ( its currently desktop and mobile) to the web but i use DropArea a lot in my application.
Pavel Vasev
@pavelvasev
Hi @AlanU! You may try to implement your own DropArea control starting with this code https://github.com/pavelvasev/simple_movie_maker/blob/gh-pages/FileDrop.qml
AlanU
@AlanU
@pavelvasev thanks I will look into that
Edwin Marshall
@aspidites
Oh hey, this is a thing.
Woohoo
NikoErnst
@NikoErnst
Hi guys,
I‘m new here and tried to get qmlweb to work but somehow ot doesn't like me. I followed the steps on npmjs.com until "npm install qmlweb". This worked for me, but I do not unrderstand where I have to add "lib/qt.js" or what to do there. Can anybody help me?
jhihn
@jhihn
@NikoErnst You have to provide a HTML file to server
*serve
just copy the block from the "auto load" section
save it to a file to be served by node and request that file
Сковорода Никита Андреевич
@ChALkeR
@NikoErnst as this question arises often, I added it to the Readme: https://github.com/qmlweb/qmlweb#testing-from-a-local-folder
@stephenmdangelo Ok, I introduced build-time module dependency shaker just now in qmlweb/qmlweb@51f6a48.
This (and some further work yet to be done) should make it possible to switch to real JS classes instead of the hacky inherit logic.
Сковорода Никита Андреевич
@ChALkeR
It also makes it possible to build any subset of QmlWeb with only the required classes. Ping me if you want to know how ;-). That is documented in that commit, though (in the sources).
Сковорода Никита Андреевич
@ChALkeR
https://github.com/qmlweb/qmlweb/blob/6c84ad1c7/src/modules/QtQuick/Animation.js — even nicer, no more registerQmlType calls needed and less cruft.
Next step would be to eliminate baseClass and QmlWeb.callSuper.
And after that I want to support defining built-in elements in QML.
Сковорода Никита Андреевич
@ChALkeR
baseClass is still required for now, but it won't be needed once everything will be converted.
Сковорода Никита Андреевич
@ChALkeR
Ok, the conversion is done.
No hand-crafted class inheritance anymore =).
ShalokShalom
@ShalokShalom
Thanks a lot ^-^
Kimmo
@kimmoal_twitter
@ChALkeR greetings and thanks for this project, it looks promising! we are currently integrating qmlweb into our upcoming Qt course (MOOC) for demonstrating QML inline with our course material and it is already looking very fancy
need to see why the master branch is not working on firefox currently...
Kimmo
@kimmoal_twitter
nvm it is
Yauhen Kotau
@bessorion
Hi! Could somebody help me to run example with multiple linked qml files?
Maybe there are some open repository with "real world" app or more detailed example how to use library?
Kimmo
@kimmoal_twitter
@bessorion https://github.com/qmlweb/qmlweb/blob/master/docs/QMLEngine.md#engineloadqmlsrc-parentcomponent--file- I have not tried this but looks like you could load multiple components (qml files) with the parentComponent parameter
like var mainComponent = loadFile('main.qml'); loadFile('YourComponent.qml', mainComponent)
have no idea what 'parent' here means actually
Yauhen Kotau
@bessorion
Yep, I saw this doc. Besides, I saw some tests tests with such behavior (/QtQuick/qml/Loader*) but doesn't puzzle out this yet.
Kimmo
@kimmoal_twitter
I am interested in multiple components as well, so if you get it working ping me @bessorion
Yauhen Kotau
@bessorion
I try to use autoloader like <body style="margin: 0" data-qml="qml/main.qml"> whit qml that imports some other qml and something still be wrong
@kimmoal_twitter OK, will keep you informed
Kimmo
@kimmoal_twitter
probably have to look in to the import code the module Qt.Quick 2.0 is imported but that is implemented in js
Yauhen Kotau
@bessorion
Unfortunatelly, this project is not ready for commercial usage, but I steel be interested and going to do some useful things for it
binamkayastha
@binamkayastha
If I wanted to make ItemDelegate supported in qmlweb, how would I go about doing that?
Yauhen Kotau
@bessorion
@binamkayastha ~/src/modules/QtQuick.Controls.2 contains stubs only, so you should implement Control and AbstractButton before
binamkayastha
@binamkayastha
@bessorion howdid you know that AbstractButton was needed before implmenting ItemDelegate?
binamkayastha
@binamkayastha
Oh I see, it inherits AbstractButton nvm
and them I'm assuming after that I create an ItemDelegate.js file in the QtQuick.Controls2 folder?
Yauhen Kotau
@bessorion
Yep! Note, if you want to pull request your changes you have to create tests as described in CONTRIBUTING.mg. Also, @ChALkeR didn't react my pull-request and last issues for a days.
Sai
@t2dk49580
@bessorion Will you continue to update this project? I think this project is very useful for my QML-only back-end programmer, and I hope you can continue to update it
Yauhen Kotau
@bessorion
Unfortunately I have no time for this.
Sai
@t2dk49580
@bessorion What do you do? I can help you.
I really need your project.
Yauhen Kotau
@bessorion
It isn't my project. Contact @ChALkeR
Sai
@t2dk49580
okey