Qt 6.11 is out! See what's new in the release
blog
anchors in MouseArea
-
Hallo zusammen,
Siehe bitte Anhang

Wie kann ich bitte den MouseArea "Anchors" so machen, dass es nur über den Bereich Text1, Text2 und Text3 aktiv ist?
Diese Screenshot ist so implementiert:
Item { .... Rectangle { Image{} Text1{} Text2{} Text3{} } }Danke in voraus
-
@Galilio said in anchors in MouseArea:
Rectangle { Image{} Text1{ id: t1} Text2{ id: t2} Text3{ id: t3} MouseArea { anchors { left: t1.left right: t1.right top: t1.top bottom: t3.bottom } onClicked: console.log("I'm here!") } }