import Felgo 3.0
import QtQuick 2.5
import QtQuick.Controls 2.2
App {
NavigationStack {
Page {
title: "Integrate C++ and QML"
Item {
width: 200; height: 200
anchors.fill: parent
DropArea {
x: 75; y: 75
width: 50; height: 50
Rectangle {
anchors.fill: parent
color: "green"
visible: parent.containsDrag
}
}
Rectangle {
x: 10; y: 10
width: 20; height: 20
color: "red"
Drag.active: dragArea.drag.active
Drag.hotSpot.x: 10
Drag.hotSpot.y: 10
MouseArea {
id: dragArea
anchors.fill: parent
drag.target: parent
}
}
}
}
}
}
Shows the Felgo viewer, but with no contents. When you click around in the background, it sometimes pops up the "buy a license" browser instance
and kills the app.
How does one drag using the mouse a custom QQuickItem (done mostly in C++)? That is not in the above example, but that is my end goal.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.