Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    QML query: Non-rectangular Mouseareas ? What is possible ?

    QML and Qt Quick
    2
    2
    2258
    Loading More Posts
    • 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.
    • Q
      QtQitten last edited by SGaist

      Hi guys,

      I am looking to create what looks like a pie chart with sections of a circle which are clickable. At the moment I can make a circular mouseareas by creating a rectangle with a high value radius rounded corners and a regular rectangular mousearea. Is there a way to make other shapes such as a triangle with QML?

      Thank you.

      [Moved to Qt Quick forum -- mlong]

      1 Reply Last reply Reply Quote 0
      • D
        dmcr last edited by

        Hello
        I thing you could do it in C++ for sure.
        However you may filter the event in javascript and it could be simplier.

        dmcr

        1 Reply Last reply Reply Quote 0
        • First post
          Last post