Closed
Description
Raising an error saying that not enough arguments are passed to standardPixmap when called out of Nuke 14.0 (Qt 5.15.2.1).
Per the PySide2 documentation, https://doc.qt.io/qtforpython-5/PySide2/QtWidgets/QStyle.html#PySide2.QtWidgets.PySide2.QtWidgets.QStyle.standardPixmap it is recommended to use standardIcon instead.
Changing:
close_btn = QtWidgets.QPushButton()
- close_btn.setIcon(QtGui.QIcon(
- self.style().standardPixmap(
- QtWidgets.QStyle.SP_DialogCloseButton
- )
- ))
+ close_btn.setIcon(self.style().standardIcon(
+ QtWidgets.QStyle.SP_DialogCloseButton)
+ )
seems to do the trick, but also needs to be done for
After fixing these 2 I was able to display my nodes in the properties bin.
Metadata
Metadata
Assignees
Labels
No labels