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

Add support for creating full Quick Rectangle nodes from C++

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • Quick: SceneGraph
    • None

    Description

      QQuickWindow contains createRectangleNode() method https://doc.qt.io/qt-6/qquickwindow.html#createRectangleNode

      However, this creates QSGRectangleNode which only supports color property. What would also be useful is a method which creates QSGDefaultInternalRectangleNode so that user gets full QML Rectangle features with radius, border, gradient etc. Alternatively these features could be added into QSGRectangleNode, but then there wouldn't be a "simple rectangle" option anymore.

      This could mean:

      • Renaming QSGDefaultInternalRectangleNode to e.g. QSGDefaultRectangleNode (as current createRectangleNode can't be renamed to e.g. createSimpleRectangleNode) and making it public.
      • Adding new QQuickWindow::createDefaultRectangleNode() method.

      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
            kagro Kaj Grönholm
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes