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:
QList<int> list;
list << 10 << 5 << 4;
qsort(list.begin(), list.end());
I am getting the following error.
Cannot convert QList<int>::iterator to void* argument for '1' to 'void qsort(void* ,size_t, size_t, int (*) (const void*, const void*))'
Can anyone suggest what would be the possible error?