[Qt-interest] Mouse double click.

Andreas Pakulat apaku at gmx.de
Thu Feb 19 11:46:20 CET 2009


On 19.02.09 14:44:15, Shabd Swarup V wrote:
> Thanks for the response. I think the problem is slightly different.
> 
> I am not deriving from the QTreeView class but actually I am writing a class that will do some operations on a particular QTreeView object.
> 
> For example, this is one of the methods in my class:

If you have the index for the item, than you can just use visualRect() to
get the items rectangle. You might need to convert that from viewport to
widget coordinates (see QAbstractScrollArea api docs for the right method)
and then you'll probably want to convert that to global coordinates using
the treeview's mapToGlobal.

Andreas

-- 
Time to be aggressive.  Go after a tattooed Virgo.



More information about the Qt-interest-old mailing list