[Qt-interest] Return QMainWidow handle

Andre Somers andre at familiesomers.nl
Mon Nov 9 11:54:02 CET 2009


matteo wrote:
> Is there a method to return the QMainWindow pointer without declares it 
> global?
>   
Why would you assume there can be only one in any application? If this 
is the case for your application, I suggest you make your QMainWindow a 
singleton class. Google on "singleton pattern" to find out how.

André




More information about the Qt-interest-old mailing list