ID 539454 - Subclassing from QtWidgets.QWidget results in an error

Follow

Problem summary
Subclassing from QtWidgets.QWidget results in an error. 
 
Customer reported version
Nuke 13.2v7
 
Customer reported platform
RHEL9
 
Steps to reproduce
 
1) Open Nuke.
 
2) Open the Script Editor and execute the following code:

from PySide2 import QtWidgetsfrom nukescripts import panelsclass SubClassedFromQWidget(QtWidgets.QWidget):    def init(self, parent=None):        QtWidgets.QWidget.init(self, parent)pane = nuke.getPaneFor('Properties.1')panels.registerWidgetAsPanel('SubClassedFromQWidget', 'Subclassed From QWidget', 'module.path', create=True).addToPane(pane)
 
3) Notice that the following error is returned to the Script Editor and Command Prompt/Terminal:
AttributeError: 'SubClassedFromQWidget' object has no attribute 'updateValue'
 
Expected behaviour
The code should be executed, without any errors being returned.
 
Actual behaviour
Running the code in the Script Editor results in the following error being returned to the Script Editor and Command Prompt/Terminal:
AttributeError: 'SubClassedFromQWidget' object has no attribute 'updateValue'
 
Workaround
Unknown.
 
Reproduced by support
This bug has been reproduced in:
Nuke 14.0v4 - Windows 10 - Linux CentOS 7
Nuke 14.0v3 - Windows 10 - Linux CentOS 7 - Regression in 14.0
Nuke 13.2v7 - Windows 10 - Linux CentOS 7 - Regression in 13.2
 
Unable to reproduce bug in:
Nuke 14.0v2 - Windows 10 - Linux CentOS 7
Nuke 13.2v6 - Windows 10 - Linux CentOS 7
 
Earliest version tested
Nuke 14.0v2 and Nuke 13.2v6
- This issue doesn't appear in these versions and has regressed
 

    We're sorry to hear that

    Please tell us why