This is a question from a comment in this question:
Drawing a frame or box around parts of a syntactic tree using tikz-qtree
I'm not getting any answer to my comment, which is why I'm asking a new question now; not sure if this is the right thing to do.
I'm trying to make the edges of the TikZ tree below connect to the nodes (or: boxes) surrounding the leaves. E.g., the edge from Top Node should connect from the bottom of the node tn towards the top of both nodes lhl1s and rhl1s, etc., all the way through the tree. Currently, the edges reach inside the leaves.
My hunch is that I should not be using a tree at all for this - or is there a simple way to do it with \Tree?
\documentclass{article}
\usepackage{tikz}
\usepackage{tikz-qtree}
\usetikzlibrary{fit}
\begin{document}
\begin{figure}[h!]
\begin{center}
\begin{tikzpicture}[every tree node/.style={align=center,anchor=north},level 2+/.style={level distance=1.25cm,sibling distance=30mm}]
\Tree [.\node(tn){Top Node};
[.\node(lhl1s){Left-Hand Level 1 Sister};
]
[.\node(rhl1s){Right-Hand Level 1 Sister};
[.\node(rhl2s1){Right-Hand Level 2 Sister};
]
[.\node(rhl2s2){Right-Hand Level 2 Sister};
]
]
]
\node[draw,fit=(tn)]{};
\node[draw,fit=(lhl1s)]{};
\node[draw,fit=(rhl1s)]{};
\node[draw,fit=(rhl2s1)]{};
\node[draw,fit=(rhl2s2)]{};
\end{tikzpicture}
\caption{A TikZ Tree}
\label{tikz-tree}
\end{center}
\end{figure}
\end{document}


Treerather than the more compact look of theforestpackage. – Sebastian Sulger Jan 09 '17 at 10:52fit=rectangleorfit=bandto easily get a less compact tree in Forest, which is more flexible generally. – cfr Jan 11 '17 at 01:43text heightwould be good here? – cfr Jan 11 '17 at 01:44