Results 1 to 5 of 5

Thread: Geometry of QWebElement

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Geometry of QWebElement

    QWebElement::geometry() returns a QRect, its height() method returns an int, so this line
    Qt Code:
    1. QString height = element.geometry().height();
    To copy to clipboard, switch view to plain text mode 
    is clearly wrong.

    If you want a numerical value in a string use a formatting function, e.g. QString::number(), but why do you want a size value as a string?

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    TeeT (17th April 2015)

Similar Threads

  1. how to draw on a QWebElement
    By 26_zhang@163.com in forum Qt Programming
    Replies: 1
    Last Post: 24th June 2014, 02:25
  2. Set html <style> with QWebElement
    By poser in forum Qt Programming
    Replies: 1
    Last Post: 18th January 2014, 17:31
  3. QWebElement render problem
    By Vaterland in forum Qt Programming
    Replies: 0
    Last Post: 23rd March 2012, 23:36
  4. QWebElement evaluateJavaScript problem
    By Talei in forum Newbie
    Replies: 0
    Last Post: 10th March 2011, 04:38
  5. Dynamically create SVG with QWebElement
    By yawar in forum Qt Programming
    Replies: 0
    Last Post: 11th April 2010, 03:53

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.