Hi, I need to do something like this:

Qt Code:
  1. class Apple {
  2. private:
  3. QPointer<Tree> m_tree;
  4. public:
  5. Tree &tree();
  6. }
  7.  
  8. Tree &Apple::tree()
  9. {
  10. return m_tree;
  11. }
To copy to clipboard, switch view to plain text mode 

But the compiler says this for the line 'return m_tree':
error C2440: 'return' : cannot convert from 'QPointer<T>' to 'Tree &'

How to change the line to make it work?
Thanks.