FlickableType added

This commit is contained in:
pokamest 2022-12-24 16:41:53 +00:00
parent 9222877306
commit 804a790392
21 changed files with 34 additions and 23 deletions

View file

@ -0,0 +1,14 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
Flickable {
id: fl
Keys.onUpPressed: scrollBar.decrease()
Keys.onDownPressed: scrollBar.increase()
ScrollBar.vertical: ScrollBar {
id: scrollBar
policy: fl.height > fl.contentHeight ? ScrollBar.AlwaysOff : ScrollBar.AlwaysOn
}
}