make call of mapgen in Qt-way