[Qt-interest] QFontComboBox limiting the font to only a selected few.
Paul Miller
paul at fxtech.com
Tue May 10 14:50:06 CEST 2011
On 5/9/2011 10:25 AM, NaGeL wrote:
> Hello, newbie here again.
>
> I'm making a text editor with Qt, and I'm doing the font selector right
> now.
>
> My problem is: I want to limit the fonts used in the program, even if
> the user has it.
> I want only the standard windows fonts to be used( Fonts that is
> installed with every Windows) OR standard Linux Fonts.
> Is this possible?
>
> If not is there a way that I can select with Fonts the QFontCombobox shows?
> or should I do this with QComboBox?
Can you walk the QFontDatabase and remove any fonts (by id) that don't
match your "approved" list?
More information about the Qt-interest-old
mailing list