Thank you again for your assistance.
The QHostAddress::toIPv4Address () method worked well for this.To achieve what you want you will have to sort on each IP byte.
Our model in the actual application is pretty deeply entrenched with a shipping date for the next release very near. However, this suggestion pops up so often with QTreeWidget related questions. Moving to Qt's official data model will be a serious consideration for the next release.After briefly looking at your code, it seems to me that it is not easy to extended it in the direction you want.
...
Bottom line is that in a long run you'd be better if you use a QTreeView + some model.
Code with a couple of suggestions implemented attached for reference.




Reply With Quote
Bookmarks