You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

chickenblood

Professional

  • "chickenblood" started this thread

Posts: 657

Location: Mountain View, CA

Occupation: Data Monkey

  • Send private message

1

Thursday, September 9th 2004, 10:14pm

Reacting to GNOME font changes

I want my Qt app to respont to changes in the GNOME font configuration dialog. Does anyone know/have any idea how to do this?

At the very worst, the GNOME font dialog must right it's fonts to a file (in the users home directory?). If someone could tell me what that file is, I could read this file at startup and set the font. Not the most elegant solution, I know
I have enough sense to know that "common sense" is an oxymoron.

djanubis

Professional

  • "djanubis" is male

Posts: 1,370

Location: Moulins France

Occupation: Software ingeneering

  • Send private message

2

Friday, September 10th 2004, 5:49am

RE: Reacting to GNOME font changes

Are you talking about ~/.gconf/desktop/gnome/interface/%gconf.xml file.
I know, Gnome is a real mess about file names and storage.

To follow in real time gnome desktop font changes, you could have some timer slot waiting for this file timestamp change and informing your app it has to change its mind about fonts....
Never patch not working code. Rewrite it !
Never patch badly designed classes. Recreate them cleanly.
(Excerpts from Computing Bible)

Home of the Lab project