Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Loading page using Qt webview
Forum Update on Tuesday, May 27th 2025

Loading page using Qt webview

Scheduled Pinned Locked Moved Mobile and Embedded
11 Posts 3 Posters 6.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tristenn
    wrote on 17 Jan 2011, 11:21 last edited by
    #1

    Hello, I create small aplication to load page in Qt webview. In simulator everything goes fine But in mobile phone app dont load page.(white screen) I connect phone to internet via WLAN connection. Pls help.

    There is code:
    @MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
    {
    ui->setupUi(this);
    QCoreApplication::setOrganizationName("Madness");
    QCoreApplication::setOrganizationDomain("madnes.eu");
    QCoreApplication::setApplicationName("Snowboard");

    ui->webView->load(QUrl ("http://snowboard.madweb.sk"));
    

    }@

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on 17 Jan 2011, 11:38 last edited by
      #2

      Which phone are you trying to use? Which Qt version?

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tristenn
        wrote on 17 Jan 2011, 11:39 last edited by
        #3

        QT 4.7, Phone I use: E75

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on 17 Jan 2011, 11:42 last edited by
          #4

          So it is a symbian phone. Did you enable the netowrking capability for your apoplication?

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tristenn
            wrote on 17 Jan 2011, 12:05 last edited by
            #5

            No, How can I do it ?

            1 Reply Last reply
            0
            • A Offline
              A Offline
              AS.Sri
              wrote on 17 Jan 2011, 12:58 last edited by
              #6

              In project file include NetworkServices.
              @symbian:TARGET.CAPABILITY += NetworkServices @

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tristenn
                wrote on 17 Jan 2011, 13:10 last edited by
                #7

                I add it now, but still white screen.

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  AS.Sri
                  wrote on 17 Jan 2011, 13:15 last edited by
                  #8

                  Try implementing S&S for QWebView like @void loadFinished ( bool ok )
                  void loadProgress ( int progress )@
                  Then it will be easier for you to debug.

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    tristenn
                    wrote on 17 Jan 2011, 13:17 last edited by
                    #9

                    My pro file:
                    @#-------------------------------------------------

                    Project created by QtCreator 2010-12-28T16:02:45

                    #-------------------------------------------------

                    QT += webkit

                    TARGET = test2
                    TEMPLATE = app

                    SOURCES += main.cpp
                    mainwindow.cpp

                    HEADERS += mainwindow.h

                    FORMS += mainwindow.ui

                    CONFIG += mobility
                    MOBILITY =

                    symbian {
                    TARGET.CAPABILITY += NetworkServices
                    TARGET.UID3 = 0xefe0c733
                    TARGET.EPOCSTACKSIZE = 0x14000
                    TARGET.EPOCHEAPSIZE = 0x020000 0x800000
                    }
                    @

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      tristenn
                      wrote on 17 Jan 2011, 13:19 last edited by
                      #10

                      now there is error: [Qt Message] qt_init: Eikon application construct failed ( -1 ), maybe missing resource file on S60 3.1?

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        AS.Sri
                        wrote on 18 Jan 2011, 04:59 last edited by
                        #11

                        I am not a symbian dev but -1 means "not found" in AVKON terms. Delete the old build files before rebuilding the project. Which IDE are you using?

                        1 Reply Last reply
                        0

                        1/11

                        17 Jan 2011, 11:21

                        • Login

                        • Login or register to search.
                        1 out of 11
                        • First post
                          1/11
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved