↧
Answer by TheBootroo for Draw rectangle using mouse QML
What I would do is instanciate a QtQuick Rectangle dynamically and set its visual properties in the same time : Just put this a a children of your 'wave graph' component : MouseArea { id: selectArea;...
View ArticleDraw rectangle using mouse QML
I'm creating a wave form using QML 2.0. I would like to know how I can draw rectangle starting when the user clicks on the waveform and ends when user releases mouse button. I need something like the...
View ArticleAnswer by j j for Draw rectangle using mouse QML
I fixed the rectangle to be drawn even when the mouse drag position is not from left to right down. Hope it helps others.Rectangle {color: "transparent"MouseArea { id: selectArea anchors.fill: parent...
View Article