Why do you post your question three times?
https://www.qtcentre.org/threads/716...tractITemModel
https://www.qtcentre.org/threads/716...ting-QTreeView