Results 1 to 4 of 4

Thread: QWebView for S60

  1. #1
    Join Date
    Apr 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Symbian S60

    Question 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:

    Qt Code:
    1. #include <QtGui>
    2. #include <QApplication>
    3. #include<QWidget>
    4. #include<QWebView>
    5. #include<QVBoxLayout>
    6. #include<QUrl>
    7.  
    8. int main(int argc, char *argv[])
    9. {
    10. QApplication a(argc, argv);
    11.  
    12. QWebView view;
    13. view.setStyleSheet("background-color:rgb(150,147,88); padding: 7px ; color:rgb(255,255,255)");
    14. view.load(QUrl("http://www.google.com"));
    15. view.showMaximized();
    16.  
    17. return a.exec();
    18. }
    To copy to clipboard, switch view to plain text mode 

    I also have the following line in my .pro file:

    Qt Code:
    1. TARGET.CAPABILITY = NetworkServices ReadUserData WriteUserData
    To copy to clipboard, switch view to plain text mode 

    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
    Join Date
    Apr 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default 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.

  3. #3
    Join Date
    Apr 2010
    Posts
    3
    Platforms
    Windows Symbian S60

    Default Re: QWebView for S60

    Hi,

    Thanks for posting this, but the link is broken and do you know where I can located the include file?

    Regards

  4. #4
    Join Date
    Apr 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: QWebView for S60

    Try this link instead:

    http://www.forum.nokia.com/info/sw.n...Z6ASxCodIq2-20

    And the include file should be in the examples\network\qftp folder of your Qt installation.

Similar Threads

  1. QWebView in Qt 4.2.3
    By andzoff in forum Qt Programming
    Replies: 0
    Last Post: 29th March 2010, 12:26
  2. QWebView + img + OSx
    By bunjee in forum Qt Programming
    Replies: 3
    Last Post: 14th December 2009, 20:47
  3. QWebView
    By giusepped in forum Qt Programming
    Replies: 3
    Last Post: 18th March 2009, 05:32
  4. QWebView
    By ivi2501 in forum Qt Programming
    Replies: 1
    Last Post: 30th December 2008, 12:57
  5. QwebView
    By peace_comp in forum Qt Programming
    Replies: 0
    Last Post: 30th July 2008, 18:20

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