Thank you for your reply and your example. However, the documentation states:

"Arbitrary (non-XEmbed) X11 widgets can also be embedded, but the XEmbed-specific features such as window activation and focus handling are then lost."

Every X Window manager reparents windows to 'swallow' them to put decoration around them, so I am convinced the Qt container widget is meant to do this too.

I would like to embed a text editor (more capable than QTextEdit) and cannot rewrite this to use QX11EmbedWidget.

Martin

Quote Originally Posted by jacek View Post
IMO the problem is that the application you want to embed doesn't know about this, so you have to use QX11EmbedContainer::embedClient().

See attachment for a small test program (you can retrieve window id using xwininfo and paste it directly into line edit).