Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2007-05

QT and FPC

7 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

ik

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

Reply by email

ik
to Giulio Bernardi: Yes: http://users.pandora.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html Giulio

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

Giulio Bernardi wrote 7 lines
> 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

Reply by email

Felipe Monteiro de Carvalho
to Den Jean: Please read and extend the FPC Qt4 Binding wiki:…
Den Jean 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

Reply by email

Den Jean
to Felipe Monteiro de Carvalho: Together with the bindings you can also find good examples, althougth more examples are…
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

Reply by email

Peter Popov
to ik: I wish to create a proof of concept FPC code that shows how "easy" it is to use QT using…

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

ik wrote 12 lines
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

Reply by email