Skip to content

[WSL] Qt WId and VSG XCB Native Window Handle Type Mismatch #1742

Description

@lonelyong

Bug Description

When embedding a VSG renderer into a Qt window on Linux/WSL, the native window handle obtained from QWindow::winId() was passed directly to VSG as the XCB native window handle.

For example:

traits->nativeWindow = window->winId();

This causes a runtime type mismatch because QWindow::winId() returns Qt's WId type, while the VSG XCB backend expects an xcb_window_t.

Consider using std::uintptr_t instead of std::any here, since nativeWindow represents a native window handle.

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions