Why my for loop always gets SIGSEGV in a QTableWidget?

Printable View