I think you should rather use QX11EmbedContainer.