Results 1 to 7 of 7

Thread: Handling multiple web pages in Qt WebKit Browser

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2011
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Handling multiple web pages in Qt WebKit Browser

    Hi Santosh,

    I did following to create and initialize 4 QWebPage objects with 4 different URLs. Each url* is initialized with different URL string.

    gWebView->setPage(qPage1);
    gWebView->load(url1);
    qPage1 = gWebView->page();

    gWebView->setPage(qPage2);
    gWebView->load(url2);
    qPage2 = gWebView->page();

    gWebView->setPage(qPage3);
    gWebView->load(url3);
    qPage3 = gWebView->page();

    gWebView->setPage(qPage4);
    gWebView->load(url4);
    qPage4 = gWebView->page();

    So on start up url4 is loaded. But later when I type below to load qPage2 it does nothing.



    gWebView->setPage(qPage2);


    Let me know is it right way to initialize qPage objects and assign them to gWebView object dynamically at run time?

    Regards,
    Dipen Patel

  2. #2
    Join Date
    Feb 2011
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Handling multiple web pages in Qt WebKit Browser

    Hi Santosh,

    Let me know if you have any idea what's going wrong with my code.

    Regards,
    Dipen Patel

  3. #3
    Join Date
    May 2008
    Location
    Melbourne, Australia
    Posts
    136
    Thanks
    9
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Handling multiple web pages in Qt WebKit Browser

    Not sure what the problem is, but perhaps this threading example using pyqt will help.

Similar Threads

  1. Replies: 2
    Last Post: 16th April 2014, 04:26
  2. Handling mouse events in Qt WebKit
    By yakin in forum Qt Programming
    Replies: 6
    Last Post: 21st April 2011, 05:44
  3. Multiple Forms Handling
    By eva2002 in forum Qt Programming
    Replies: 5
    Last Post: 11th November 2010, 06:24
  4. multiple plots on multple pages
    By giusepped in forum Qwt
    Replies: 0
    Last Post: 29th July 2009, 08:38
  5. Handling multiple UDP sockets
    By ecphora in forum Qt Programming
    Replies: 2
    Last Post: 1st April 2006, 20:01

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.