[Qt-interest] Help needed for the problem

Ramesh ramesh.bs at robosoftin.com
Fri Apr 30 13:19:15 CEST 2010


Hi,

 

I need to display a group of text and the icon in a listview, here some
items in listview will have icons and some will not. When the user taps on
the icon, I need to perform some operations. The problem is how to recognize
the user has taped only on icon?

 

I found one solution, but its tedious.. take the position of click event,
then take the co-ordinates of the item -rect based on the index. Then map,
weather the taped point comes within the icon rect or not..

 

I want some alternate solutions..like using the Qgraphicsitemview  or some
other control, despite the above solution works.. still I hope some easy
solution is there, can anybody knows the solution better than this?.. please
let me know.


-----------------------------------------------
Robosoft Technologies - Come home to Technology

Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100430/90b7024b/attachment.html 


More information about the Qt-interest-old mailing list