[Solved] Qt - How to get parent of QTreeWidgetItem
Does anyone know how to get parent of a QTreeWidgetItem child?
Thank you, Andre. I also noticed that it would crash if the item was the uppermost item & had no parent.
I added this check to my c++ code (might be useful for anyone who comes across this in the future):