Creating pyqt windows/widgets in blender and interacting with blenders python api.
So far everything seems to be working fine however if i click on blender the qt window will go behind blender window.
Essentially I am trying to parent a QMainWindow to a non-qt application (blender). Any ideas on how to do this?
I could use Qt.WindowStaysOnTopHint flag but then it’s on top of everything which isn’t ideal and i would still need to identify blender being minimized or some other application taking focus.
Also: in case anyone is wondering why I’m not using blenders gui features is because the tools I’m making though primarily may be used in blender may also be used standalone (for cases where it wouldn’t interact with specific blender code). Like a browser for example. Furthermore some of the base classes used are used outside of blender as well.