×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    28

    QWebView for S60

    I am running Qt with S60 5th edition.

    I cannot get QWebView to work on my target device (N97). The code works fine in the emulator.

    This is my code in main.cpp:

    Code:
    #include <QtGui>
    #include <QApplication>
    #include<QWidget>
    #include<QWebView>
    #include<QVBoxLayout>
    #include<QUrl>
    
    int main(int argc, char *argv[])
    {
        QApplication a(argc, argv);
        
        QWebView view;
        view.setStyleSheet("background-color:rgb(150,147,88); padding: 7px ; color:rgb(255,255,255)");
        view.load(QUrl("http://www.google.com"));
        view.showMaximized();
        
        return a.exec();
    }
    I also have the following line in my .pro file:

    Code:
    1.TARGET.CAPABILITY = NetworkServices ReadUserData WriteUserData
    I can connect to the internet using the phones web viewer application.

    When my application starts, I just get a blank screen.

    Please help!

  2. #2
    Registered User
    Join Date
    May 2010
    Posts
    23

    Unhappy Re: QWebView for S60

    Me too . I am using Nokia N97 mini . Same Code and same problem

    Pls some body help me soon .

    its very very very urget.

  3. #3
    Registered User
    Join Date
    Jan 2009
    Posts
    28

    Re: QWebView for S60

    I have found a solution.

    I put this:

    #ifdef Q_OS_SYMBIAN
    qt_SetDefaultIap();
    #endif

    in my main function and it works now.

    This also needs to be installed:
    http://www.forum.nokia.com/info/sw.n...Z6ASxCodIq2-20

    And you need to add the file sym_iap_util.h to your project.

Similar Threads

  1. white screen when calling qwebview widget
    By hulun499 in forum Nokia N9
    Replies: 13
    Last Post: 2010-05-10, 12:19
  2. QWebView and special character like @
    By foo6321 in forum Nokia N9
    Replies: 6
    Last Post: 2010-03-02, 14:59

Posting Permissions

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