[newbie] how to iterate over QListView entries?

I load entries from a text file into a QListView for display reasons and now i need to work with the entries in the list. I'm not sure on how to iterate over QListView items but I think I know how to iterate over QListWidge items:

Ok
but why not just loop over the stringlist and alter what you want?
Then set it back to show the altered data?

Maybe i dont understand what you really want to do with the data :)

I read data (IPs) from a text file, line-by-line & display them in a QListView to the user.
I then want to connect to each IP (i.e. I'll need to iterate through all the IPs that are now ibeing displayed n the QListView), execute some function(s), analyze the return value(s) and change the text color to either red or green in the QListView that serves to display each host's IP to display success or failure.

In a second iteration, after the tests have run, one could hover over the host IPs and a pop up would display foirmatted results of the above tests.
Doable?