Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-122903

C++ API for QtQuick shapes would be nice

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • Quick: Shapes
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            appadeia Carson Black
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes