I'm constructing a QDirIterator with a specific directory. The files inside look like this:
file_0
files_1
file_2
.
.
.
.
if I use Windows, the iteration is normal, but if I use Linux, the order is different:
file_0
file_1
file_10
file_100
.
.
.
file_2
file_20
.
.
This is the code:
while(it.hasNext()) {
QString tmp = it.next();
}
I need the Windows type of iteration. How can I control that? How come it works differently in different operating systems (cross-platform)?