How to call KFontChooser

Rolf Eike Beer kde at
Sun Sep 12 17:40:17 BST 2010

This question goes especially to Aaron as "svn blame" says it's his code ;)

Ok, the example code says:

QStringList list;
KFontChooser::getFontList(list, KFontChooser::SmoothScalableFonts);
KFontChooser *chooseFont = new KFontChooser(0, false, list);

Which would end up in 

warning: converting ‘false’ to pointer type for argument 1 of 
‘QFlags<Enum>::QFlags(void**) [with Enum = KFontChooser::DisplayFlag, void** = 

I guess this should be NoDisplayFlag instead?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the kde-core-devel mailing list