July 18, 2012

QtQitten QtQitten
Lab Rat
15 posts

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

 

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

July 18, 2012

dmcr dmcr
Ant Farmer
161 posts

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

 
  ‹‹ QT Quick Desktop Application      Regaining Focus after asynchronous notification ››

You must log in to post a reply. Not a member yet? Register here!