plot: improve the Qt managment