Update qtree.cpp