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

QSGDefaultRectangleNode always returns invalid color

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8, 6.9.2
    • Quick: SceneGraph
    • None
    • Linux/Wayland

    Description

      When creating a QSGDefaultRectangleNode using QQuickWindow::createRectangleNode(), calling color() on the resulting node always returns QColor(Invalid), even after setting a valid color using setColor().

       

      Internally, QSGDefaultRectangleNode uses a member variable m_color for the color() getter. However, this member is never updated in setColor(), which causes color() to return the default-initialized (invalid) color value, regardless of what was actually set.

      Attachments

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

        Activity

          People

            janichol Andy Nichols
            doschr Dominik Schütz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes