×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Nov 2010
    Posts
    52

    Screenshot webview

    Hi all

    I am using the below to take a screenshot of the webview widget.

    Code:
        QPixmap pix(QPixmap::grabWidget(ui->webView));
        pix.save("sshot.bmp");
    The above only screenshots the visible part of the webview i.e. what the user is seeing on screen. What i would like is a screenshot of the entire webpage.

    Any help and advice would really be appriciated.

    Thanks in advance

  2. #2
    Super Contributor
    Join Date
    May 2008
    Location
    Helsinki, Finland
    Posts
    1,098

    Re: Screenshot webview

    Hi there,

    You could try specifying a rectangle and see what it returns?
    http://doc.trolltech.org/4.7/qpixmap.html#grabWidget

    Best regards,
    Marko
    [FONT="Comic Sans MS"][COLOR="Blue"][/COLOR][I]Marko Lumivuori
    Technical Support
    +358 40 8019330
    [email]marko.lumivuori@nokia.com[/email][/I][/FONT]

  3. #3
    Registered User
    Join Date
    Jan 2009
    Location
    ભારત->ગુજરાત->ભાવનગર
    Posts
    279
    Regards
    Viral Parmar

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×