The Free Pascal Qt4 binding allows Free Pascal to interface with the C++ Library Qt.
This binding does not cover the whole Qt4 framework but only the classes needed by the Cross Platform Lazarus IDE to use Qt as a Widget set
if you have questions or want to follow up on the latest developments: subscribe to the
Lazarus LCL/Qt Mailing ListThe following screenshots provide a glimpse of results achieved
Click on the thumnails for larger images.
Documentation about this Free Pascal Qt4 Binding can be found on this FPC Wiki Page
Refresh your page (F5) if you have link problems
Not yet in Lazarus svn, replace lazarus svn qt4.pas or qt45.pas with provided qt4.pas and apply patch mentioned here.
Note that shared library has been renamed to Qt4Pas (libQt4Pas.so,Qt4Pas.dll,Qt4Pas.frameworks)
Compile Lazarus svn on Linux: make PREFIX=/usr clean all LCL_PLATFORM=qt
Compile Lazarus svn on MAC: make clean all LCL_PLATFORM=qt
The split build version allows to compile all files seperately.(requested by a Debian packager)
For lazarus svn >= 21913: No need to use USE_QT_45, minimum binding version V1.72.
Linux: make PREFIX=/usr clean all LCL_PLATFORM=qt
MAC: make clean all LCL_PLATFORM=qt OPT="-k'-framework' -k'Qt4Intf' -k'-lobjc' -k'-framework' -k'Foundation'"
For Lazarus svn 19501..21913, Qt 4.5 support available with bindings V1.69..V1.71 through option USE_QT_45
Linux: make PREFIX=/usr clean all LCL_PLATFORM=qt OPT="-dUSE_QT_45"
MAC: make clean all LCL_PLATFORM=qt OPT="-dUSE_QT_45 -k'-framework' -k'Qt4Intf' -k'-lobjc' -k'-framework' -k'Foundation'"
This demo implements a very basic browser, and provides sample code for cookies, proxy, authentication, flash enabling ...
Needs Binding >= V1.72 (lazarus svn 21913)
Download LCL WebKit Demo
For Lazarus 0.9.28.X: needs option USE_QT_45
Linux: make PREFIX=/usr clean all LCL_PLATFORM=qt OPT="-dUSE_QT_45"
MAC: make clean all LCL_PLATFORM=qt OPT="-dUSE_QT_45 -k'-framework' -k'Qt4Intf' -k'-lobjc' -k'-framework' -k'Foundation'"
USE_QT_45 was default on platform windows (see qtdefines.inc)