Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[solved]How to set minimum flickable contentY and how to use Math.max() function?
Hello, I'm working with a flickable in qml and I need that the minimium contentY shoud be 20, I don't know how to do this because flickable doesn't have a onMovementUpdated signal. Another thing, I don't understand how work Math.max() and Math.min() functions.
Can anyone help?
Peppy last edited by
Math.max() and Math.min() choose from two arguments and return the higher or the lower one.
Thanks, now how to set max or min contentY for a flickable
mbrasser last edited by
Can you give more details about what sort of effect you are trying to achieve (and what version of QtQuick you are using)? It may be that it is possible to achieve without setting a minimum contentY. For example, you might try placing your flickable content starting at y position of -20.
Thanks, setting up content at y position of -20 works!