Re: [fpc-devel] QT and FPC

2007-05-13 Thread Peter Popov

You can find binding here:

http://andy.jgknet.de/oss/kylix/wiki/index.php/Qt3Clx

The binding on the pascal side are quite nice. You will have troubles  
finding qtc (c binding for qt3). You most likely have to recompile  
yourself.



Peter

On Sun, 13 May 2007 06:11:37 -0500, ik <[EMAIL PROTECTED]> wrote:


Hi All,

I wish to create a proof of concept FPC code that shows how "easy" it
is to use QT using FPC.
The thing is, that I wish to do it in pure code without using Lazarus.

Is there any known to work binding for QT3 (or 4) that works without
using Lazarus ?

Thanks,

Ido


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] QT and FPC

2007-05-13 Thread Felipe Monteiro de Carvalho

On 5/13/07, Den Jean <[EMAIL PROTECTED]> wrote:

The Qt/Embedded binding is even easier to work with, due
to the OO wrapper. But due to the overhead it did not seem
usefull to me to create one for the LCL/Qt4 interface.


I think it´s possible to have both.

On the Symbian Port of Free Pascal I am writing 2 layers to connect
with the c++ libraries. A procedural binding and a re-object
orientation. So, you can for example add only the units that implement
the procedural bindings and avoid getting a larger executable then
needed. Or you can add the units that give o-o binding and get
something easier to work with, at the cost a sligthly bigger exe.

I would say the same is possible with the Qt 4 bindings.

thanks,
--
Felipe Monteiro de Carvalho
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] QT and FPC

2007-05-13 Thread ik

Hi

First of all Thank you.

Here is my POC :

program qt_poc;
uses sysutils,qt4;

var
 app  : QApplicationH;
 window   : QWidgetH;
 message_ : QLabelH;
 text : WideString;
begin
 app  := QApplication_create(@argc, argv);
 text := 'Hello World';
 window   := QWidget_create(nil, 1);
 message_ := QLabel_create(@text, window);
 QWidget_show(window);
 QApplication_exec();
end.

Please look at the attached image to see the result :)

And yes, I do know it does not free resources, but it's only a POC...

Personally I prefer GTK2, and my co-worker and a friend will want to
kill me tomorrow that I'll tell him that (he is a KDE developer at his
free time ;))

The person that bind QT made a really good work !
Thank you very much,

Ido

On 5/13/07, Giulio Bernardi <[EMAIL PROTECTED]> wrote:

> Is there any known to work binding for QT3 (or 4) that works without
> using Lazarus ?

Yes: http://users.pandora.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html

bye,
Giulio


--
http://ik.homelinux.org/
<>___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] QT and FPC

2007-05-13 Thread Den Jean
On Sunday 13 May 2007 09:39:48 Felipe Monteiro de Carvalho wrote:
> Together with the bindings you can also find good examples, althougth
> more examples are always good =)
>
> thanks,

Please read and extend the FPC Qt4 Binding wiki:

http://www.freepascal.org/wiki/index.php/Qt4_binding

If you create any sample programs, 
I can add these to ones already included with the binding (I you want)

The Qt/Embedded binding is even easier to work with, due
to the OO wrapper. But due to the overhead it did not seem
usefull to me to create one for the LCL/Qt4 interface.

Any questions are welcome.

regards,

Den Jean


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] QT and FPC

2007-05-13 Thread Felipe Monteiro de Carvalho

Together with the bindings you can also find good examples, althougth
more examples are always good =)

thanks,
--
Felipe Monteiro de Carvalho
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] QT and FPC

2007-05-13 Thread Giulio Bernardi

Is there any known to work binding for QT3 (or 4) that works without
using Lazarus ?


Yes: http://users.pandora.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html

bye,
Giulio
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel