-
Notifications
You must be signed in to change notification settings - Fork 317
standardPixmap issue in properties bin widgets on Qt 5.15.2.1 #454
Copy link
Copy link
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
| tree.style().standardPixmap(QtWidgets.QStyle.SP_DialogYesButton) |
After fixing these 2 I was able to display my nodes in the properties bin.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels