Qt-interest Archive, December 2007
Limit QFontDialog choices to Fixed only?
Message 1 in thread
Is there a "standard" way to make the QFontDialog dialog only show fixed
width fonts? In my application I do custom rendering of hex data and only
fixed width fonts make sense.
I have considered inheriting and changing the behaviour that way, but the
non-static interfaces aren't really documented and thus I assume may change
in the future.
Thanks,
Evan
--
[ signature omitted ]
Message 2 in thread
On onsdag den 19. December 2007, Evan Teran wrote:
> Is there a "standard" way to make the QFontDialog dialog only show fixed
> width fonts? In my application I do custom rendering of hex data and only
> fixed width fonts make sense.
No, unfortunately not. I suggest putting a wish entry in the task tracker.
> I have considered inheriting and changing the behaviour that way, but the
> non-static interfaces aren't really documented and thus I assume may change
> in the future.
You can't override QFontDialog because there are no virtual functions to work
on. The only option for this would be to copy the QFontDialog source and
modify it to fit your purpose.
Bo.
--
[ signature omitted ]