×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    11

    QWebView doesn't load with N5800

    I develop an application for Nokia N5800 with Qt, I want display a QwebView, but the QwebView still blank, here my main.cpp:

    #include <QtGui/QApplication>
    #include <QApplication>
    #include <QWebView>
    #include <QUrl>

    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);

    QWebView view;
    view.load(QUrl("http://www.google.com"));
    view.setFocus();

    view.showMaximized();

    return a.exec();
    }

    and the .pro:

    QT += core gui webkit network

    TARGET = MyMobile
    TEMPLATE = app


    SOURCES += main.cpp

    CONFIG += mobility

    symbian {
    TARGET.CAPABILITY = NetworkServices
    TARGET.UID3 = 0xef1cbf3f
    TARGET.EPOCSTACKSIZE = 0x64000
    TARGET.EPOCHEAPSIZE = 0x020000 0x800000
    HEADERS += sym_iap_util.h
    LIBS += -lesock -lcommdb -linsock # For IAP selection
    }

    DEFINES += BROWSER
    DEFINES += PHONE_EMU


    I heard that I should use this in my main function:

    #ifdef Q_OS_SYMBIAN
    qt_SetDefaultIap();
    #endif

    and include the sym_iap_util.h
    It work on Qt simulator but it still don't work on Symbian Device.
    (I have many errors with sym_iap_util.h)

    Thanks for your help.

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2010
    Posts
    12

    Re: QWebView doesn't load with N5800

    I have no answer, but a similar problem:
    I didn't used QWebView but
    QDesktopServices:penUrl( url);
    which should open the webbrowser of my phone.
    This does work in the emulator , but not on the phone , a 5530XM. Perhaps due to the capability SwEvent, which I won't add.

    Now I use a QTextBrowser for this purpose, that works very good. You can even add a Backward button .

    Klaus

Similar Threads

  1. [Moved]*#7370# not working on N5800
    By heuven in forum General Development Questions
    Replies: 9
    Last Post: 2010-05-14, 15:38
  2. load ebook using QWebview in Qt4.6.1
    By BalajiR in forum Qt
    Replies: 4
    Last Post: 2010-02-11, 10:04
  3. Forcing Landscape view on N97 and N5800
    By amirlr in forum Mobile Java Games
    Replies: 4
    Last Post: 2009-08-24, 19:20
  4. problem with installation of 1.9.3 - N5800
    By maclun123 in forum Symbian
    Replies: 2
    Last Post: 2009-03-30, 20:52

Posting Permissions

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