papyros / qml-extras

OBSOLETE - SEE QML-MATERIAL REPOSITORY
https://github.com/papyros/qml-material
63 stars 22 forks source link

Use QPainter from c++ #8

Open dridk opened 9 years ago

dridk commented 9 years ago

From my personal experience, QPainter is faster than using canvas. Test with animation and scalling... Do you want add my C++ class instead using pure qml/canvas ? For exemple the Circle with QPainter::drawCircle.. I don't know if it will fit easily as a library

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/10532338-use-qpainter-from-c?utm_campaign=plugin&utm_content=tracker%2F1788388&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1788388&utm_medium=issues&utm_source=github).
ricardomv commented 9 years ago

@dridk Sure that would be great. To add C++ code to this library you can take a look in qml-desktop on how we added QML plugins and also check http://doc.qt.io/qt-5/qtqml-modules-cppplugins.html . QtCreator can also create a plugin project if you create one inside this repo that should be enough to get it working.