Results 1 to 4 of 4

Thread: QWebView

  1. #1
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QWebView

    I am trying to exand QWebView in order to open pop up pages.
    So, I create a class like
    Qt Code:
    1. #include "support.h"
    2. #include <QWebView>
    3.  
    4. Support::Support(QWidget* parent) : QWebView(parent)
    5. {
    6. this->load(QUrl("http://re.jrc.ec.europa.eu/pvgis/apps3/pvest.php#"));
    7. }
    To copy to clipboard, switch view to plain text mode 

    I know that I should use QWebView* Support::createWindow(QWebPage::WebWindowType type ), but I have no idea how to use it.
    For example, who call that function and how use it?

  2. #2
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QWebView

    QWebView::load() is the correct method to load an URL. But I don't see you showing the widget. QWebView is a QWidget, and not a dialog, so you need to call show() or the equivalent before it will be displayed.

    I put the QWebKit presentation uplast Sunday. It should give you a good headstart on using Webkit.
    http://www.qtcentre.org/forum/f-qt-w...ine-18040.html

  3. #3
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QWebView

    I do in the caller. Anyway, the problem is how to open popup page in new tab.
    G

  4. #4
    Join Date
    Apr 2006
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QWebView

    see the demo browser with qt release

Similar Threads

  1. Problem With QWebView
    By ivi2501 in forum Qt Programming
    Replies: 8
    Last Post: 2nd August 2009, 19:37
  2. using QWebView without a mouse
    By Heikki in forum Qt Programming
    Replies: 0
    Last Post: 22nd October 2008, 13:50
  3. QWebView - retrieving information?
    By lamera in forum Qt Programming
    Replies: 1
    Last Post: 25th September 2008, 17:53
  4. printing QWebView before showing in Dialog
    By Grisu in forum Qt Programming
    Replies: 1
    Last Post: 17th July 2008, 12:20
  5. Adding JavaScript Obj to QWebView issues
    By bpetty in forum Newbie
    Replies: 2
    Last Post: 13th May 2008, 20:44

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.