Hi,
I'm using Qt 4.2 on Linux (Gentoo)...
When i try to do

Qt Code:
  1. int id = QFontDatabase::addApplicationFontFromData( myFont );
To copy to clipboard, switch view to plain text mode 

or

Qt Code:
  1. int id = QFontDatabase::addApplicationFont( "/../fonts/myFont.ttf" );
To copy to clipboard, switch view to plain text mode 

it always returns -1....

Any suggestion to resolve the problem???