Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
-
None
Description
When authoring QQuickItems in C++, sometimes their visual appearance is composed of geometric shapes. The options for this are:
- use QPainter on a texture and display that texture
- This is not ideal as it requires allocating a potentially large texture and fails to make use of the full capacity of the hardware's graphics acceleration capabilities.
- write the graphics code yourself
- This uses the hardware much less wastefully.
The latter is ideal from a hardware usage standpoint, but duplicates a large amount of code that Qt has already written to implement the Shapes QML API. Being able to use this same code from C++ would vastly reduce the amount of code required in such applications.