[Qt-interest] Global variables "the Qt way"

Sean Harmer sean.harmer at maps-technology.com
Wed Jun 16 17:47:31 CEST 2010


On Wednesday 16 June 2010 16:39:31 Scott Aron Bloom wrote:
> What I have done, create a singleton pattern based object.  Whos Qt
> parent is the qApp

And in fact "qApp" is just a macro for QCoreApplication::instance() which uses 
the singleton pattern.

Sean



More information about the Qt-interest-old mailing list