Results 1 to 3 of 3

Thread: QWebView page is blank on my device, but loads nicely on the emulator

  1. #1
    Join Date
    Oct 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Maemo/MeeGo

    Default QWebView page is blank on my device, but loads nicely on the emulator

    Ive just started developing for my lovely n900 and would like very much to make a "webkit app" or whatever its called.

    right now i have 2 problems:

    1: ive made a simple app that loads google.com. when i debug to the software emulator it works well but when i debug to the device the screen is just white (blank). Am i missing something on my n900?

    2: where do i put html files if i where to load my own html file and not load google.com? im doing it like this: ui->webView->load(QUrl("home.html")); but where am I suppose to put home.html?

  2. #2
    Join Date
    Oct 2010
    Location
    India
    Posts
    12
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: QWebView page is blank on my device, but loads nicely on the emulator

    Store it in Resource file or use the file path directly as it is. Like "c:/html"

  3. #3
    Join Date
    Apr 2011
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60 Maemo/MeeGo

    Default Re: QWebView page is blank on my device, but loads nicely on the emulator

    I'm having the same problem. Works fine in simulator but not on nokia c7 device.

    Tried to load http://www.google.com and local HTML file. Same problem.

    Can browse normally with browser on device, so internet is reachable.

    I have tried to double the heap size. Same problem.

    I have this in my .PRO file:
    Qt Code:
    1. QT += core
    2. QT += gui
    3. QT += sql
    4. QT += network
    5. QT += webkit network
    6. QT += multimedia
    7.  
    8. TARGET = MyApp
    9. TEMPLATE = app
    10.  
    11. DEFINES += NETWORKACCESS
    12.  
    13. CONFIG += mobility
    14. MOBILITY += multimedia
    15. MOBILITY += location
    16. MOBILITY += bearer
    17.  
    18. symbian {
    19. TARGET.UID3 = 0xe4fd1392
    20.  
    21. TARGET.CAPABILITY += NetworkServices ReadUserData WriteUserData
    22. TARGET.CAPABILITY += Location
    23.  
    24. TARGET.EPOCSTACKSIZE = 0x14000
    25. TARGET.EPOCHEAPSIZE = 0x020000 0x8000000
    26. }
    27.  
    28. debug {
    29. MMP_RULES -= "PAGED"
    30. MMP_RULES += "UNPAGED"
    31. }
    To copy to clipboard, switch view to plain text mode 

    No solution yet.

Similar Threads

  1. Editing in text box of web page : QWebView
    By girishgowda in forum Qt Programming
    Replies: 0
    Last Post: 13th July 2010, 12:42
  2. QWebView showing blank pages.
    By gontham in forum Qt Programming
    Replies: 1
    Last Post: 26th May 2010, 11:02
  3. QWebView problem to display the web page
    By ansar in forum Qt Programming
    Replies: 4
    Last Post: 2nd March 2010, 13:36
  4. Replies: 3
    Last Post: 25th February 2010, 09:53
  5. No network when Modem Emulator connect to a real device
    By tommy_tang in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 10th December 2007, 09:24

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.