Quantcast
Channel: Draw rectangle using mouse QML - Stack Overflow
Browsing latest articles
Browse All 3 View Live

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 Article



Image may be NSFW.
Clik here to view.

Draw 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 Article

Answer 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
Browsing latest articles
Browse All 3 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>