Thank you for your input, it definitely helped. The code that I used to get it to work was:
cities->setCheckState(0, Qt::Checked);
cities->setCheckState(0, Qt::Checked);
To copy to clipboard, switch view to plain text mode
This was for the parent, I now have to do the same for the children.
One such child is:
(new QTreeWidgetItem(cities))->setText(0, tr("USA Cities"));
To copy to clipboard, switch view to plain text mode
I'm not sure how to make this into a checkbox (I've checked the "Help" logs in QT for a idea but came up short when it came to children). Do you have any suggestions?
Thanks again
Bookmarks