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

Context2D functions fail if passed extra arguments

    XMLWordPrintable

Details

    • e05ba6967edfe288044d6c397fbb541c67eddead

    Description

      Uncomment the commented out code below and the rectangle won't be drawn.

      import QtQuick 2.0
      
      Rectangle {
          width: 300
          height: 300
      
          Canvas {
              anchors.fill: parent
              anchors.margins: 10
      
              onPaint: {
                  var ctx = getContext("2d");
                  ctx.beginPath();
                  ctx.fillStyle = "red";
                  ctx.fillRect(0, 0, width, height/*, 0*/);
              }
          }
      }
      

      Attachments

        For Gerrit Dashboard: QTBUG-40703
        # Subject Branch Project Status CR V

        Activity

          People

            mitch_curtis Mitch Curtis
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes