Set_parent_window() not working in Windows11, but working on macOS

Hi all,

I am embedding succesfully a panda3d window in a QT widget on MacOS.

I am setting the WindowProperties like this:

props = WindowProperties.getDefault()
props.set_size(self.QtWidgetParent.width(),self.QtWidgetParent.height())
props.set_parent_window( int(self.QtWidgetParent.winId()) )

Where self.QtWidgetParent is my original widget I want to attach. The program works on mac correctly but in windows it hangs when:

win = self.graphicsEngine.makeOutput(pipe, name, 0, fbprops, props, flags)

The logs do not show any issue even in debug mode. If I remove the “set_parent_window” property, the window is created no problem (but detached from my main window.

Tried playing a bit with the winId() value and tryine creating NativeWindowHandle (make_int) with no success. Seems make_win is not available in python.

Also tried to set_parent_window after the window is created with requestProperties, but does not seems to do anything.

Using panda3d-1.11.0.dev3917-cp314-cp314-win_amd64

(By the way, panda3d-1.11.0.dev3985-cp314-cp314-win_amd64 does not seems to work on Windows)

Any hints? Thanks!

Charlie

Can you make a self-contained sample program so I can try this for myself and file it as a GitHub issue?

Can you also elaborate on what you mean by “does not seem to work” regarding the dev3985 build?