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.

Cheers

Rich

On Fri, 20 Nov 2020 at 14:18, Giuseppe D'Angelo via Interest <
interest@qt-project.org> wrote:

> Il 20/11/20 14:55, Richard Moore ha scritto:
> > I'd hope there's a way to get the actual connection being used, rather
> > than relying on looking at the environment variables. For example, what
> > happens if -display is passed?
>
> As in QX11Info::connection()?
>
> Thanks,
> --
> Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer
> KDAB (France) S.A.S., a KDAB Group company
> Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
> KDAB - The Qt, C++ and OpenGL Experts
>
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to