import QtQuick 2.5 import QtQuick.Window 2.2 Window { visible: true Canvas { id: pauseCanvas anchors.fill: parent onPaint: { var ctx = getContext("2d"); ctx.clearRect(0,0, ctx.width, ctx.height) ctx.save() ctx.fillStyle = Qt.rgba(1, 1, 1, 1); ctx.fillRect(0, 0, ctx.width, ctx.height); ctx.fillStyle = Qt.rgba(0,0,0,1); ctx.rect(0.125*width, 0.05*height, 0.25*width, 0.90*height); ctx.fill(); ctx.rect(0.625*width, 0.05*height, 0.25*width, 0.90*height); ctx.fill(); ctx.restore(); } } }