PDA

View Full Version : QWeb



offline
6th April 2010, 23:00
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

borisbn
7th April 2010, 05:20
Maybe not Qurl but QUrl?
If not - show us compiler error output

offline
7th April 2010, 09:53
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'

wysota
7th April 2010, 11:03
Add QT+=webkit to your project file.