首先编译QT时要把QWebkit加上
你的编译QT命令至少要如下(例子是VS2005 or VS2008) :
configure.exe -debug-and-release -platform win32-msvc2005 -webkit
然后nmake
给个windows下的dos脚本,只需将他Copy到QT的安装目录然后运行这个脚本。
@echo off
rem by wya 2 , Mar, 2008
rem this just a qt compile script
rem before use this please check you use correctly QTDIR path
if NOT "%1"=="OK" goto erreur_param
Print " Start Compile at"
echo %QTDIR%
echo " ..."
echo "....."
echo "..........."
configure.exe -debug-and-release -platform win32-msvc2005 -webkit
echo " Success configuration "
echo " start compile using nmake QT "
echo " ....."
echo " ...."
echo " ......"
nmake
echo " ...."
echo " ........"
echo " Finish ok "
echo " Try to run : designer"
goto fin
:erreur_param
echo "please input the OK as a param
:fin