ported xtplot to qt4 finally