You can get that through the QPlatformNativeInterface which you can get through QGuiApplication::platformNativeInterface().

The XCB plugin implements the nativeResourceForScreen such that querying for "display" returns the X11 Display of the screen.

The nativeResourceForIntegration function can also be used to query for some of the X11 internals.

Cheers,
_