Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.9.2
-
None
-
Windows 10 / 8.1 x64 with Qt 5.9.2
Description
Hi,
we found that if the width or height of a Canvas component is smaller than 64 (magic number?), then things we painted will get scaled.
This issue only occurs when renderStrategy is set to Canvas.Cooperative and renderTarget is set to Canvas.FramebufferObject.
Here's a minimum example to reproduce this issue:
import QtQuick 2.6 import QtQuick.Window 2.2 Window { visible: true width: 32 height: 32 Canvas { anchors.fill: parent renderStrategy: Canvas.Cooperative renderTarget: Canvas.FramebufferObject onPaint: { var ctx = getContext("2d"); ctx.fillRect(0, 0, width, height); } } }
Attachments
Issue Links
- relates to
-
QTBUG-96589 Canvas's size is incorrect when renderTarget is set to FramebufferObject
- Closed