Results 1 to 4 of 4

Thread: QWeb

  1. #1
    Join Date
    Nov 2009
    Posts
    16
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default QWeb

    I want to display the webpage.I'm using a webwiew

    ui->webWiew->load(Qurl("www.qcentre.org"));
    ui->webWiew->show();

    eror code.
    Where is the problem

  2. #2
    Join Date
    Apr 2010
    Location
    Rostov-na-Donu, Russia
    Posts
    153
    Thanks
    2
    Thanked 26 Times in 23 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QWeb

    Maybe not Qurl but QUrl?
    If not - show us compiler error output

  3. #3
    Join Date
    Nov 2009
    Posts
    16
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: QWeb

    compile outpud
    Running build steps for project dnm...
    Configuration unchanged, skipping QMake step.
    Starting: C:/Qt/2009.03/mingw/bin/mingw32-make.exe -w
    mingw32-make: Entering directory `C:/Users/chngr/Documents/dnm'
    C:/Qt/2009.03/mingw/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory `C:/Users/chngr/Documents/dnm'
    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\2009.03\qt\include\QtCore" -I"..\..\..\..\Qt\2009.03\qt\include\QtGui" -I"..\..\..\..\Qt\2009.03\qt\include" -I"..\..\..\..\Qt\2009.03\qt\include\ActiveQt" -I"debug" -I"." -I"..\..\..\..\Qt\2009.03\qt\mkspecs\win32-g++" -o debug\mainwindow.o mainwindow.cpp
    C:/Qt/2009.03/qt/bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\2009.03\qt\include\QtCore" -I"..\..\..\..\Qt\2009.03\qt\include\QtGui" -I"..\..\..\..\Qt\2009.03\qt\include" -I"..\..\..\..\Qt\2009.03\qt\include\ActiveQt" -I"debug" -I"." -I"..\..\..\..\Qt\2009.03\qt\mkspecs\win32-g++" -D__GNUC__ -DWIN32 mainwindow.h -o debug\moc_mainwindow.cpp
    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\2009.03\qt\include\QtCore" -I"..\..\..\..\Qt\2009.03\qt\include\QtGui" -I"..\..\..\..\Qt\2009.03\qt\include" -I"..\..\..\..\Qt\2009.03\qt\include\ActiveQt" -I"debug" -I"." -I"..\..\..\..\Qt\2009.03\qt\mkspecs\win32-g++" -o debug\moc_mainwindow.o debug\moc_mainwindow.cpp
    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug\dnm.exe debug/main.o debug/mainwindow.o debug/moc_mainwindow.o -L"c:\Qt\2009.03\qt\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
    mingw32-make[1]: Leaving directory `C:/Users/chngr/Documents/dnm'
    mingw32-make: Leaving directory `C:/Users/chngr/Documents/dnm'
    debug/mainwindow.o: In function `ZN10MainWindowC2EP7QWidget':
    C:/Users/chngr/Documents/dnm/mainwindow.cpp:8: undefined reference to `_imp___ZN8QWebView4loadERK4QUrl'
    debug/mainwindow.o: In function `ZN10MainWindowC1EP7QWidget':
    C:/Users/chngr/Documents/dnm/mainwindow.cpp:8: undefined reference to `_imp___ZN8QWebView4loadERK4QUrl'
    debug/mainwindow.o: In function `ZN10MainWindowC2EP7QWidget':
    C:/Users/chngr/Documents/dnm/mainwindow.cpp:8: undefined reference to `_imp___ZN8QWebViewC1EP7QWidget'
    debug/mainwindow.o: In function `ZN10MainWindowC1EP7QWidget':
    C:/Users/chngr/Documents/dnm/mainwindow.cpp:8: undefined reference to `_imp___ZN8QWebView6setUrlERK4QUrl'
    collect2: ld returned 1 exit status
    mingw32-make[1]: *** [debug\dnm.exe] Error 1
    mingw32-make: *** [debug] Error 2
    Exited with code 2.
    Error while building project dnm
    When executing build step 'Make'
    Last edited by wysota; 7th April 2010 at 10:03.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QWeb

    Add QT+=webkit to your project file.

  5. The following user says thank you to wysota for this useful post:

    offline (7th April 2010)

Similar Threads

  1. [QWeb] Auto fills forms and browse throw web pages?
    By flamaros in forum Qt Programming
    Replies: 0
    Last Post: 16th December 2009, 00:36

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.