I have done something similar with qt embedded 3.3.4.
Took a ttf font
converted to bdf using ttf2bdf tool.
prepared a line inside fontdir file.

compiled qte with "full config" configuration.
launched an application like this:

myapp -savefonts


in the application you have to do at least one writing.
automatically the application saves the qpf file.
the second time the application will be quicker because it will use the qpf file directly.

bye bye