Nevermind. I found the error of my ways. I was not doing it as a GUI app. DOH!! Anyways, I started a GUI app and the QTreeWidget works just fine