I have been trying to get my head around how to develop a standard style iterator for a QAbstractItemModel, and am getting fairly stuck. I can search the model using depth first or breadth first algorithms, but when it comes to applying these modes to an iterator I'm not sure how to proceed. Could some on point me in the right direct (possibly with pseudo code), or they have an example they are willing to share i would be very grateful.
Thanks
C++14
iterator over the rows of aQAbstractItemModel
for a given role. It only iterates over the rows of the model, the column remains unchanged.Note:
std::iterator
is deprecated inC++17
.Usage: