Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. OpacityMask on a map: how to keep touch working?

OpacityMask on a map: how to keep touch working?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 237 Views
  • 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.
  • B Offline
    B Offline
    BasePar
    wrote on last edited by BasePar
    #1

    Hello everybody,

    I need to get qml map with a shape (in my example, a disc).
    I use the "official" example from qt.
    My code:

    Map {
                id: map
                x: 106
                y: 390
                width: 300
                height: 300
                visible: false
                smooth: true
    }
    
    Image {
                 id: mask
                 source: "images/disque300px.png"
                 //sourceSize: Qt.size(300, 300)
                 smooth: true
                 visible: false
                }
    
    OpacityMask {
                 anchors.fill: map
                 source: map
                 maskSource: mask
                }
    

    The result is OK:
    alt text

    But the problem is that the map is no longer sensitive to "touch" (normal, its "visible" state is false)...
    How can I solve this problem?

    Thank you in advance for your response!

    1 Reply Last reply
    0

    • Login

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