Tomasz Siekierda schreef op 17-11-2013 17:29: > The settings class is a Singleton, and all options are accesible > through member variables (private + getters and setters, or public - > if you prefer). Although I personally believe Singletons are evil, > they can be useful - and this is one of the place where the benefits > outweight the problems. Singletons really are evil indeed. However, Qt already provides one, and you might as well use it: QApplication. We usually make our settings object a member of our own QApplication-derived Application class. That way, it is available where needed, but we don't have another singleton.
André _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest