Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

how to delete all the QTreeWidgetItem in the QTreeWidget?



  • how to delete all the QTreeWidgetItem in the QTreeWidget?
    i know clear() does not delete the QTreeWidgetItem actually.
    and i can recursively delelte all the QTreeWidgetItem by myself.
    but i want to know is there any efficient way to do this?
    thank you very much


Log in to reply