PDA

View Full Version : picking geometry in qt custom widgets



notsonerdysunny
17th July 2007, 18:28
Hi,
I was wondering if there is any way to pick geometries that are drawn on the custom widgets. I would like to be able to pick a line that is drawn on custom widgets just the way it is done in OpenGL. i.e. I would like to be able to pass the names and get a list of names of the geometries that got clicked instead of me having to keep track of the clicking myself.
If it is not already there in Qt, It would be a very nice addition and very helpfull for people writing custom widgets.
Thanks,
Sunil

jacek
17th July 2007, 20:51
You can use QGraphicsView for that.

notsonerdysunny
17th July 2007, 23:01
Thanks!
Sunil