Hi all
I am trying to sort a QList. I am using a custom type with overloaded < operator but then to check out the source of error, I changed the list to a interger one.
My code now is just this:
I am getting the following error.QList<int> list;
list << 10 << 5 << 4;
qsort(list.begin(), list.end());
Can anyone suggest what would be the possible error?Cannot convert QList<int>::iterator to void* argument for '1' to 'void qsort(void* ,size_t, size_t, int (*) (const void*, const void*))'
Bookmarks