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. QML query: Non-rectangular Mouseareas ? What is possible ?
Forum Update on Monday, May 27th 2025

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

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 2.4k 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.
  • Q Offline
    Q Offline
    QtQitten
    wrote on 18 Jul 2012, 14:13 last edited by SGaist 11 Oct 2015, 13:55
    #1

    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
    0
    • D Offline
      D Offline
      dmcr
      wrote on 18 Jul 2012, 14:51 last edited by
      #2

      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
      0

      1/2

      18 Jul 2012, 14:13

      • Login

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