in qt6 indexes and sizes are qsizetype, not int. use auto instead since we don't really care about the type anyway