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

iOS: Canvas draw black background only

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • 58caedf0fdc6b63751577972473ae27dd36499f5

    Description

      Regression compared to Qt 5.2.1

      Using Mac offline enterprise installer (iOS/android) #21

      Canvas on iOS are just black. Try for example the Qt Quick Canvas example (attached screenshot) or the simple test case below.

      Test case:

      import QtQuick 2.2
      import QtQuick.Controls 1.1
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
          Canvas {
              anchors.fill: parent
              onPaint: {
                  var ctx = getContext('2d')
                  ctx.save()
                  ctx.beginPath();
                  ctx.strokeStyle = '#FF0000'
                  ctx.lineWidth = 5
                  ctx.translate(50, 50)
                  ctx.moveTo(0, 0)
                  ctx.lineTo(500, 500)
                  ctx.stroke()
                  ctx.closePath()
                  ctx.restore();
              }
          }
      
      }
      

      Attachments

        1. canvas_530b.png
          94 kB
          Caroline Chao

        Issue Links

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

          Activity

            People

              sletta Gunnar Sletta
              carochao Caroline Chao (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes