Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use QPainter from c++ #8

Open
dridk opened this issue Apr 5, 2015 · 1 comment
Open

Use QPainter from c++ #8

dridk opened this issue Apr 5, 2015 · 1 comment

Comments

@dridk
Copy link

dridk commented Apr 5, 2015

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
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants