[Qt] New LCL/Qt WebKit Demo: javascript, plugins, cookies, proxy and server authentication

Den Jean Den.Jean at telenet.be
Tue Jun 16 21:10:25 CEST 2009


Hi,

I uploaded a new version of the LCL/Qt WebKit demo browser.
http://users.telenet.be/Jan.Van.hijfte/qtforfpc/lclwebkit2.tar.gz

Javascript and plugins were already supported:
http://doc.trolltech.com/4.5/qtwebkit.html#netscape-plugin-support

Added cookie and authentication support to the FreePascal Qt4 Binding with V71RC1 (Qt 4.5.X):
(binary for linux 32 only)
http://users.telenet.be/Jan.Van.hijfte/qtforfpc/bin-qt4pas-V1.71RC1_Qt4.5.1.tar.gz
http://users.telenet.be/Jan.Van.hijfte/qtforfpc/qt4pas-V1.71RC1_Qt4.5.1.tar.gz
http://users.telenet.be/Jan.Van.hijfte/qtforfpc/win_qt4pas-V1.71RC1_Qt4.5.1.zip
http://users.telenet.be/Jan.Van.hijfte/qtforfpc/mac_qt4pas-V1.71RC1_Qt4.5.1.zip

The lclwebkit demo saves proxy settings and cookies in GetAppConfigDir(False)
The cookies are not maintained (i.e. no policing, no removal of expired or older versions of same url etc)
This is left as an exercise ;-)

Please test it and report. Then I will release it as V1.71 with binaries for all platforms (one at a time ;-)
To install, compile binding library (report/update wikies if you have troubles with that)
then copy V1.71RC1 qt4.pas on top of lazarus/lcl/interfaces/qt/qt45.pas in a lazarus svn. 
For lazarus code completion,  code browsing and hints to work including unit qt4.pas,
copy V1.71RC1 qt4.pas on top of qt4.pas instead of qt45.pas (Qt_45 only then)
http://users.telenet.be/Jan.Van.hijfte/qtforfpc/Lazarus_LCL_Qt.png

Needs Qt 4.5.X. So install Qt 4.5.X system wide OR compile Qt somewhere and do

$ export LD_LIBRARY_PATH=/some/where/qt-all-opensource-src-4.5.1/lib
// compile svn lazarus with on linux
$make PREFIX=/usr clean all LCL_PLATFORM=qt OPT="-dUSE_QT_45"
// in same console as you did export, start lazarus
$./startlazarus 


regards,

Den Jean






More information about the Qt mailing list