3dsmax 2015, QT window decoration issues

Hello World.

I’ve been writing a tool in QT with 3dsmax 2015 + PySide/QtGui.
Everything went fine except a little display issue when dragging the window, like the image attached in this post.

Notes :

  • The qt main widget is parented to 3dsmax’s hwnd.
  • I had the issue on the widgets too, but I’ve used the moveEvent to refresh the widgets, it updates everything except the window decorations
  • Windows 7, aero + transparency activated. The issue is still there even if I disable transparency.

Does anyone encounter a bug like this ?

Notes ++ :

  • I don’t have this bug if I stop parenting the main widget to 3dsmax’s hwnd, but the problem is that this way, the window can be behind the associated 3dsmax instance, thing I don’t want.
  • When parented, the widget doesn’t appear on my second screen.
  • When not parented, I have issue when closing the window, that can leads to a 3dsmax crash.

Ok, the crash part seems to be resolved.

I added a QApplication.quit call in the main widget closeEvent.

“- The qt main widget is parented to 3dsmax’s hwnd.” - This is not working properly, known bug. Please go to Autodesk website and fill in a bug for this.

Shameless plug again, but check my github project examples to get a workaround for this: YCDIVFX_MaxPlus/Examples at master · ycdivfx/YCDIVFX_MaxPlus · GitHub

The parenting solution for PySide and Max now is… not to parent it.

Cheers!