×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    331

    QWebView doesn't load any QUrl page on Nokia N97

    Hi,

    I am not able to open any QUrl link like "http://www.google.com" on my Nokia N97 device. Is this problem specific to Nokia N97?

    QWebView showeventswebView;
    showeventswebView->load(QUrl("http://www.google.com"));
    showeventswebView->showMaximized();
    my .pro file contents:

    QT += core gui webkit network

    TARGET = ShowEvents
    TEMPLATE = app


    SOURCES += main.cpp\
    mainwindow.cpp

    HEADERS += mainwindow.h

    FORMS += mainwindow.ui

    CONFIG += mobility
    MOBILITY =

    symbian {
    TARGET.UID3 = 0xe733a294
    # TARGET.CAPABILITY +=
    TARGET.CAPABILITY = NetworkServices
    TARGET.EPOCSTACKSIZE = 0x14000
    TARGET.EPOCHEAPSIZE = 0x020000 0x2000000
    }
    Anybody facing this issue of displaying any website using QWebView.

    Thanks,
    Rajeev

  2. #2
    Nokia Developer Champion
    Join Date
    Sep 2007
    Location
    Bhavnagar
    Posts
    928

    Re: QWebView doesn't load any QUrl page on Nokia N97

    Hi,

    Are you able to run your application in the emulator or getting any error?
    Are you getting any error message when running your app in N97.
    Jajal Mehul

  3. #3
    Nokia Developer Champion
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: QWebView doesn't load any QUrl page on Nokia N97

    Can it open local pages? It may be that you need to allow the application more heap. You should double the default heap size if you use WebView.

  4. #4
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: QWebView doesn't load any QUrl page on Nokia N97

    Also make sure you dont require any proxy to be set.

  5. #5
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    331

    Re: QWebView doesn't load any QUrl page on Nokia N97

    Friends, anybidy facing this kind of problem???

    I have gone through the following thread link but not able to resolve the issue.
    http://developer.symbian.org/forum/s...6945#post26945

    I don't understand the problem.

    I guess, this problem is with Qt->QWebView, which works on Simulator but fails to work/load on Mobile devices!!!

  6. #6
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    331

    Re: QWebView doesn't load any QUrl page on Nokia N97

    Quote Originally Posted by james1980 View Post
    Hi,

    Are you able to run your application in the emulator or getting any error?
    Are you getting any error message when running your app in N97.
    Yes, it's running fine on Simulator...and no error on N97, just a white screen of QWebView.

  7. #7
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    331

    Re: QWebView doesn't load any QUrl page on Nokia N97

    Quote Originally Posted by danhicksbyron View Post
    Can it open local pages? It may be that you need to allow the application more heap. You should double the default heap size if you use WebView.
    Yes... I can open local html files. I have GPRS activated and also WiFi connected.

  8. #8
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    331

    Re: QWebView doesn't load any QUrl page on Nokia N97

    Quote Originally Posted by kamalakshan View Post
    Also make sure you dont require any proxy to be set.
    I din't use any proxy settings!

  9. #9
    Nokia Developer Champion
    Join Date
    Sep 2007
    Location
    Bhavnagar
    Posts
    928

    Re: QWebView doesn't load any QUrl page on Nokia N97

    Hi,
    Well make sure that your phone is connected to internet before you run your application.
    Jajal Mehul

  10. #10
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    331

    Re: QWebView doesn't load any QUrl page on Nokia N97

    Quote Originally Posted by james1980 View Post
    Hi,
    Well make sure that your phone is connected to internet before you run your application.
    Yes James.. it's connected to Internet.

    Are you able to Load any page previously?
    If you can send me a demo project that loads a page in your device, then that would be great...

    Thanks...

  11. #11
    Nokia Developer Champion
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: QWebView doesn't load any QUrl page on Nokia N97

    Quote Originally Posted by RajeevSahu View Post
    Yes... I can open local html files. I have GPRS activated and also WiFi connected.
    Double your heap space again.

  12. #12
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    331

    Re: QWebView doesn't load any QUrl page on Nokia N97

    Quote Originally Posted by danhicksbyron View Post
    Double your heap space again.
    Hey thanks... I Changed the heap space and the Page loaded.

    symbian {
    TARGET.UID3 = 0xe733a294
    TARGET.CAPABILITY = NetworkServices ReadUserData WriteUserData
    #HEADERS += sym_iap_util.h
    #LIBS+=-lesock -lcommdb -linsock # For IAP selection
    TARGET.EPOCSTACKSIZE = 0x14000
    TARGET.EPOCHEAPSIZE = 0x020000 0x4000000
    }
    The issue is resolved.

    Thanks all of You...

Similar Threads

  1. QUrl problems
    By manikantan in forum [Archived] Beginning Qt
    Replies: 11
    Last Post: 2011-02-09, 10:10
  2. load ebook using QWebview in Qt4.6.1
    By BalajiR in forum Qt
    Replies: 4
    Last Post: 2010-02-11, 10:04

Posting Permissions

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