title: Find if QTreeWidgetItem is top level
body: <p>Is there a way I can find out if the <code>QTreeWidgetItem</code> I'm looking at is top level or not? I have a program crashing when I try to take the text of a parent if the item is top level (no parent).</p>