Hi,

I have an application which has lots of input boxes whose font size and font family can be changed by the user in the preferences window.

I have a class called Preferences where I store this information by reading it from the ini file using QSettings.

The path to the input boxes is

MainWindow->Splitter->ScrollArea->Widget->Input Box

How can I pass the font information from preferences to the input boxes?

Currently, I have a singleton class called Preferences and I call Preferences::Instance() whereever I need in my program.

I doubt if this is a nice way.

Can someone tell me if there is a better way ?

Thanks a lot