Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > QWebView: Get coordinates of an element and simulate a relative tothis position.

Reply
Thread Tools

QWebView: Get coordinates of an element and simulate a relative tothis position.

 
 
Gelonida
Guest
Posts: n/a
 
      02-19-2011
WHht I wondered is following:

Let's assume I use a QWebView,

As soon as the page is loaded ( loadFinished signal)
I'd like to identify a certain element with findFirstElement(), get
it's coordinates (and size) calculate some related coordinates (for
example 20 pixel above the top left corner of this element
and clcik there.


SO my questions:
- how can I get the coordinate of an element, that I found with
findFirstElement()
- how can I click in the browser window relative to the coordinate
previously obtained



Thanks in advance for any suggestions ideas.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I simulate a rightclick on the html element Napoleon Javascript 2 11-21-2007 05:28 AM
viewable coordinates of an element steven acer Javascript 4 10-26-2007 05:08 PM
How can I show coordinates relative to an image instead of the browserwindow? M@r(o Javascript 1 03-11-2007 03:57 PM
Converting canvas coordinates to window coordinates in tkinter......... Suresh Kumar Python 0 07-04-2003 10:14 AM
Converting canvas coordinates to window coordinates....... Suresh Kumar Python 0 07-03-2003 04:53 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57