Do not use toInt in a qt version earlier than 5.3