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
The Lazarus LCL/Qt code still needs a patch, coordination is in progress.
Qt 4.7 is binary compatible with Qt 4.6 and Qt 4.5, therefore the binding binary
created for Qt 4.5 should just work with Qt 4.7. However since Qt 4.7
sse2 is enabled by default, requiring the binding to be compiled with -mstackrealign
The following binary is compiled by adding a line QMAKE_CXXFLAGS += -mstackrealign
to the Qt4Pas.pro file (e.g. after the line QOBJECTS_DIR)
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 21913 <= svn < 23858: 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'"
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