Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Using Flickable::resizeContent with mouse

$
0
0
Hi! I want resize content on onDoubleClicked, but Flickable::resizeContent demands the third parameter as QPointF type. How can I obtain this from mouse. I have only mouse.x and mouse.y onDoubleClicked: {                     var cW = flick.contentWidth*1.1                     var cH = flick.contentHeight*1.1                     var center =mouse.x   <- ????                     flick.resizeContent(cW,cH,center); }

Viewing all articles
Browse latest Browse all 4972

Trending Articles