Free Pascal Qt4 Binding

Description

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

Contact

if you have questions or want to follow up on the latest developments: subscribe to the

Lazarus LCL/Qt Mailing List

Version History

V2.1
19 Feb 2010
Added QScocketNotifier, QTcpServer, QUdpSocket, QPointF, QtVersion
V2.0
18 Jan 2010
Qt qmake build system. qt4intf renamed to Qt4Pas
V1.72
21 Sep 2009
Improved signal hooking/method overriding, Windows:renamed types likes HDC to avoid name clashes
V1.71
15 Sep 2009
WebKit improvements (qlclwebpage, qlclwebview, qlclnetworkcookie), qlclthread, Added Library Versioning, Created LclwebKit Demo
V1.70
20 Apr 2009
Added Qt-Embedded(small fix), Linux 64
V1.69
19 Apr 2009
Qt 4.5.0 Linux, Windows and OsX

Screenshots

The following screenshots provide a glimpse of results achieved

Click on the thumnails for larger images.

Documentation

Documentation about this Free Pascal Qt4 Binding can be found on this FPC Wiki Page

Downloads

Refresh your page (F5) if you have link problems

V2.1 (Qt 4.5.X, compatible with Qt 4.6.X)

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)

V 1.72 (Qt 4.5.X, compatible with Qt 4.6.X, for Lazarus svn)

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'"

Lazarus LCL/Qt WebKit demo

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

V 1.70 (Qt 4.5.X, for latest stable Lazarus release)

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)