Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. German
  4. anchors in MouseArea
Forum Updated to NodeBB v4.3 + New Features

anchors in MouseArea

Scheduled Pinned Locked Moved Unsolved German
2 Posts 2 Posters 518 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Galilio
    wrote on last edited by
    #1

    Hallo zusammen,

    Siehe bitte Anhang 2020-07-27_14h52_54.png

    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

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @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!")
        }
      }
      

      (Z(:^

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved