[Qt-interest] Help needed for the problem
Alexandre Beraud
aberaud at infflux.com
Fri Apr 30 13:25:47 CEST 2010
Hi,
Why not use QTableView with two columns ?
Regards,
Alex
Ramesh a écrit :
>
> 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.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
Alexandre BERAUD
Ingénieur Développement
Infflux - Informatique & Flux
Tel: 01 49 57 92 00 - Fax : 01 49 57 92 01
Mail: aberaud at infflux.com
Visitez notre site : www.infflux.com
More information about the Qt-interest-old
mailing list