Hello Everyone,

Super QT newbie here. I was hoping someone could help with a problem I'm having. I'm looking for an example of how to get the geometry from a QWebElement. I've been looking and haven't seen any examples to find the geometry. Currently my code looks like this:

Qt Code:
  1. Opage = new QWebPage(this);
  2. Opage->mainFrame()->setHtml(reply->readAll());
  3. QWebElement doc = Opage->mainFrame()->documentElement();
  4. QWebElementCollection elements = doc.findAll("div");
  5. foreach (QWebElement element, elements)
  6. {
  7. QString height = element.geometry().height();
  8. qDebug() << height ;
  9. }
To copy to clipboard, switch view to plain text mode 

This prints out nothing. I also tried another case setting my element = doc.firstChild() but that also prints nothing. I am sure that I'm connecting and I have found attributes using doc.findall("div"). Do I need to use QWebView to see the dimensions? Or might I be over looking something simple?

Thanks in advance!