change main.c for the qt gui