How to find rendered position of an HTMLElement (in C++, not JS)?

Jason Keirstead jason at keirstead.org
Wed Jan 12 12:52:11 GMT 2005


On January 12, 2005 08:34 am, David Faure wrote:
> On Tuesday 11 January 2005 23:32, Leo Savernik wrote:
> > Am Dienstag, 11. Januar 2005 21:55 schrieb Jason Keirstead:
> > [...]
> >
> > > Is there any (non-javascript) way to get the rendered position of an
> > > HTML element using public KHTML API? [...]
> >
> > Why don't you use DOM::Node::getRect?
>
> Hmm, if it provides equivalent functionality then I change my mind :)
> Not sure Jason saw the hint about getRect - cc'ing.

Indeed, this could be the answer.

Does anyone know offhand if the rect coordinates are relative to the QWIdget 
or to the viewport?

-- 
Jason Keirstead
http://www.keirstead.org




More information about the kfm-devel mailing list