Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Using Flickable::resizeContent with mouse
Dimidroll93 last edited by
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
var cW = flick.contentWidth1.1
var cH = flick.contentHeight1.1
var center =mouse.x <- ????
onek24 last edited by
bq. Resizes the content to width x height about center.
If you want to go ahead and keep it's center-point: That would be for x-coordinate in center: flick.x+(flick.width/2) and for y-coordinate: flick.y+(flick.height/2). Also you could pass it's originX and originY.