Qt is written in C++. FPC can't directly access C++ classes, thus a flattening library is required. In theory it would be possible to do this with a static library as well, but that would result in even larger executables. (Sidenote: Qt4 also has the dependency on a libqt4pas).