<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Digging back through the code, I can see that the XCB platform plugin ensures that the Display * and the xcb_connection correspond to the same display by opening them together using the same string (in Qt 5). Assuming the same is done in the Qt 6 plugin then exposing them again through QX11Info would be just the same as in Qt 5.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Cheers</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Rich </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 20 Nov 2020 at 14:18, Giuseppe D'Angelo via Interest <<a href="mailto:interest@qt-project.org">interest@qt-project.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Il 20/11/20 14:55, Richard Moore ha scritto:<br>
> I'd hope there's a way to get the actual connection being used, rather <br>
> than relying on looking at the environment variables. For example, what <br>
> happens if -display is passed?<br>
<br>
As in QX11Info::connection()?<br>
<br>
Thanks,<br>
-- <br>
Giuseppe D'Angelo | <a href="mailto:giuseppe.dangelo@kdab.com" target="_blank">giuseppe.dangelo@kdab.com</a> | Senior Software Engineer<br>
KDAB (France) S.A.S., a KDAB Group company<br>
Tel. France +33 (0)4 90 84 08 53, <a href="http://www.kdab.com" rel="noreferrer" target="_blank">http://www.kdab.com</a><br>
KDAB - The Qt, C++ and OpenGL Experts<br>
<br>
_______________________________________________<br>
Interest mailing list<br>
<a href="mailto:Interest@qt-project.org" target="_blank">Interest@qt-project.org</a><br>
<a href="https://lists.qt-project.org/listinfo/interest" rel="noreferrer" target="_blank">https://lists.qt-project.org/listinfo/interest</a><br>
</blockquote></div></div>