graph in qt creator