On Wed, 23 Nov 2011 10:39:02 PM Stefan Bogner wrote:
> My first idea was to use page()->frameAt( event->globalPos() )
As you said later, QMouseEvent::pos() is better, but you really should be
checking the return value before using it. page()->frameAt() will return a
NULL if you give it an invalid coordinate which is why your call segfaulted.
A better sequence would be
QWebElement *elem = page()->frameAt(QMouseEvent::pos() );
if (elem != NULL)
{
...
}
--
Lindsay
_______________________________________________
webkit-qt mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt