Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.13
- import QtQuick.Window 2.13
- import QtQuick.Controls 2.13
- ApplicationWindow {
- visible: true
- width: 640
- height: 480
- title: qsTr("Hello World")
- Rectangle {
- width: 300
- height: 300
- color: "red"
- DragHandler {
- // With TakeOverForbidden ListView win..but the button too!!
- // grabPermissions: DragHandler.TakeOverForbidden
- // With CanTakeOverFromItems button lose...but ListView lose too!!
- //grabPermissions: DragHandler.CanTakeOverFromItems
- }
- ListView {
- width: 100
- height: 100
- clip: true
- model: 20
- delegate: Button {
- text: "Should scroll"
- }
- }
- Button {
- x: 100
- text: "Should lose"
- }
- Rectangle {
- x: 200
- width: 50
- height: 50
- color: "blue"
- TapHandler {
- onTapped: console.log("Tapped")
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement