Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, December 2006
re: Setting fonts!!!


Message 1 in thread

I have a series of ui files - each widget has it's own font defined within
these files.

Rather than manually changing each widget's font - I want to just override
it and use one font throughout.

How do I go about doing this without having to modify each of the ui files?

Thanks!

Message 2 in thread

Hi,

> Rather than manually changing each widget's font - I want to just 
> override it and use one font throughout. 
>  
> How do I go about doing this without having to modify each of the ui files?

Use QApplication::setFont():
http://doc.trolltech.com/4.2/qapplication.html#setFont

--
 [ signature omitted ]