Fixed Qt4 and updated number of iterations