In your constructor you create a local variable which is destroyed when the constructor has finished.
Why not use the reference you already have?
Secondly, the class declaration should be in a seperate header file to the definition so it can be easily compiled by the meta object compiler.




Reply With Quote
Bookmarks