请教各位大神们:
刚接触QML,在用Canvas进行绘图时,怎么用代码提示补全啊?
Canvas{ anchors.fill: parent rotation:parent.m_Angle onPaint: { var ctx = getContext("2d") var lineargradient = ctx.createLinearGradient(0, 0, 150, 150) lineargradient.addColorStop(0, 'white') lineargradient.addColorStop(1, 'white') ctx.beginPath() ctx.arc(75, 75, 150, 0, Math.PI, true) ctx.fill() } }}就是像上面的,用anchors的时候点上.就有一系列的成员提示,但是用Canvas就没有代码提示了。请知道的大神给解惑一下。