Forum > QT

How are the libQtXpas files created?

(1/1)

vfclists:
Are C equivalents of the widgets'  C++ header files created by the Qt project itself, after which some utility translates them for Pascal, or is some utility used that translate the C++ header files to their Pascal equivalents?

Does libqtXpas enable using Qt widgets with Lazarus or FPC even if LCL components are not yet available for them?

cdbc:
Hi
I think it's @Zeljko who creates them, by way of flattening the C++ classes/objects in QT, to a C-interface, that pascal can use... Quite a bit of work, goes into it ...and knowledge.
Regards Benny

dbannon:
I understand Zeljko himself uses those libraries directly, without using LCL but that is just an impression.

Davo

Bogen85:
I use the libraries myself outside of Lazarus (without using the LCL).
(none of the gui apps I develop using FPC use Lazarus or the LCL)

What is there works well, but keep in mind it is a subset of Qt, only what is needed for LCL.

If you are coming from Qt there is somewhat of a learning curve.

You have to study the qtX unit in question a bit before you can reasonably use it.

About 15000 lines of code for the qt6 unit.
https://github.com/davidbannon/libqt6pas/blob/master/cbindings/qt62.pas

Bogen85:
There is a lot missing, notably in regard to event handlers for widgets.

The functionality to set up event handlers exists with what is provided in these units, but you have to dig a bit into the Qt documentation to figure things out.

Qt offers multiple ways of doing the same thing, these units typically only have one way.

Navigation

[0] Message Index

Go to full version