Paint with Qml
-
-
I've modified context2D from your code and i make 2 new examples with chromeExperience example code. I think you will be interested ^^
"qmlcanvas-modified":http://ftp-developpez.com/yan-verdavaine/qml-canvas/qmlcanvas-modified.7z -
yah_: really cool! I want some more examples showing mixing qml and canvas though and not just show pure javascript apps.
I modified the canvas so its possible (but less optimal) to paint outside the paintEvent now so you may have to do a few changes. Now that I get contributions and some attention within Nokia I think I will re-host my example to allow for accepting contributions and perhaps keep the examples in a separate repository. That way you can hopefully assign copyright and I can merge your changes upstream if you are interested?
-
[quote author="Jens" date="1283848465"]yah_: really cool! I want some more examples showing mixing qml and canvas though and not just show pure javascript apps.[/quote]
Few other chrome example could be adapted from "chromeexperiments":http://www.chromeexperiments.com/
like "plasmatree":http://www.chromeexperiments.com/detail/plasmatree/[quote author="Jens" date="1283848465"]That way you can hopefully assign copyright and I can merge your changes upstream if you are interested?[/quote]
You can get changes of course. But it must be cleaned (i do it with an axe ^^).
I'll begin a qml plugin for "QExtend":http://gitorious.com/qextend#more lib and i'll begin with Context2D too.With last result, create HTML5 canvas api to qml is a very powerful feature.
It's interested to see that QPainter and HTML5 canvas api are very similare
-
If I create an official Qt Labs repository the project might end up in Qt itself just like Rectangle and Text elements. If you are interested in cleaning up the patch and submitting merge requests after that let me know and I'll send you the new link once its available.
-
I begin plugin for QExtend. Result are really cool. If you want "look video":http://www.developpez.net/forums/d906429-2/c-cpp/bibliotheques/qt/qextend-sortie-v0-0-1-a/#post5457024
If you are intrested, i've add a global Object from plugin which give setTimeout and setInterval function. So plamaTree example work with very small change :D
You can get code with svn on "http://subversion.developpez.com/projets/qextend/branches/dev":http://subversion.developpez.com/projets/qextend/branches/dev
[quote]If I create an official Qt Labs repository the project might end up in Qt itself just like Rectangle and Text elements. If you are interested in cleaning up the patch and submitting merge requests after that let me know and I’ll send you the new link once its available.[/quote]
When our dev become mature, merge our version could be very interesting.[edit: fixed hyperlink / $chetankjain]
-
Hey I wanted to let you know that I now have an official Qt repository for my qmlcanvas.
It would be great if you posted merge requests for the features you added. Otherwise I will have to duplicate these efforts. This way they can become part of the official Qt. I also started working on an initial test framework so we can start work towards stability."http://qt.gitorious.org/qt-labs/qmlcanvas":http://qt.gitorious.org/qt-labs/qmlcanvas
[edit: fixed hyperlink / $chetankjain]
-
If i found time, i'll help you. But actually it's just for fun. It's to study qml and i'm not sure canvas api interest people. Anymore, i write another plugin with another approach with a begin of webGl api support.
I think it's better to develop different approach and merge later."If you want look new Video":http://www.developpez.net/forums/d906429-2/c-cpp/bibliotheques/qt/qextend-sortie-v0-0-1-a/#post5459209