I'm trying to embed an sfml window into a qt5 window. I saw the howto about converting an sfml window into a QT widget, but this will NOT work, because my sfml window creates an opengl context and uses glew to make openGL calls. this basically means you cannot embed the window in QT, as qt has its own openGL subsystem that is NOT compatible with glew. My only hope is to spawn the sfml window into its own process and capture it (using its window ID) and embed it into a widget. The problem is, how do you get the windowID from the PID ? one of the ways if the window sets the _NET_WM_PID property (there was an example on stackoverflow), and this works , but apparently SFML doesn't set the property.