ID 559278 - PySide windows don't have the correct order applied, so always appear behind floating Nuke panes on macOS

Follow

Problem summary
PySide windows don't have the correct order applied, so always appear behind floating Nuke panes on macOS
 
Customer reported version
nuke.14.0v5
 
Customer reported platform
mac.12
 
Steps to reproduce
 
1) Open Nuke

2) Right click the Node Graph panel tab>Float tab and minimise the main Nuke window

3) In the Script Editor run the following:
 

from PySide2 import QtWidgetswindow = QtWidgets.QWidget()window.setWindowTitle("Test Window")window.show()
 
4) Try to bring Test Window in front of the Node Graph floating pane, it doesn't work.
 
Expected behaviour
For the currently active window to be brought to the front and be visible:
 

 
Actual behaviour
The PySide window stays behind the floating Nuke panel:

 
Workaround
Register the PySide panel as a Nuke panel, then it behaves the same as all other panels, though it will dock to Nuke's panel/pane system, which may not be wanted:
 
from PySide2 import QtWidgetsfrom nukescripts import panelsdef testWindow():    window = QtWidgets.QWidget()    window.setWindowTitle("Test Window")    return windowpanels.registerWidgetAsPanel('testWindow', 'Test Window', 'testWindowWidget')
 
Reproduced by support
This bug has been reproduced in:
Nuke 15.0v1 - macOS Monterey
Nuke 12.0v1 - macOS Monterey
Nuke 10.0v1 - macOS Big Sur
 
Unable to reproduce bug in:
Nuke 15.0v1 - Windows 10, Rocky 9.2
 
Earliest version tested
Nuke 10.0v1 - This issue appears to be in all tested versions of the product
 

    We're sorry to hear that

    Please tell us why