State:Closed|icon_bug|icon_nuke|database:public|Resolution:Fixed|TargetRelease:12.2v3|BugID:438219|
Problem summary
QComboBox objects that have items of different lengths are not aligned.
Customer reported version
Nuke 12.1v2
Customer reported platform
windows10
Steps to reproduce
1) Open Nuke.
2) Run the following code in the Script Editor:
from PySide2 import QtWidgetsclass TestAddingToComboBox(QtWidgets.QDialog): def __init__(self, parent=None): super(TestAddingToComboBox, self).__init__() mainLayout = QtWidgets.QVBoxLayout() self.com = QtWidgets.QComboBox() self.com.addItem("aaa_bbb_ccc") self.com.addItem("aaa_bbb_ccc_ddd") mainLayout.addWidget(self.com) ### Pre-added For comparison self.com2 = QtWidgets.QComboBox() self.com2.addItem("aaa_bbb_ccc") self.com2.addItem("aaa_bbb_ccc_ddd_fff_ggg") mainLayout.addWidget(self.com2) self.setLayout(mainLayout)mainWindow = TestAddingToComboBox()mainWindow.show() Result:

Expected behaviour
The QComboBox objects should be the same size. For example:

Actual behaviour
QComboBox objects with different length items are not aligned.
Workaround
Unknown.
Reproduced by support
This bug has been reproduced in:
Nuke 12.1v3 - Windows 10 - Linux CentOS 7 - macOS 10.13 (High Sierra)
Nuke 12.1v1 - Windows 10 - Linux CentOS 7 - macOS 10.13 (High Sierra) - Regression
Unable to reproduce bug in:
Nuke 12.0v6 - WIndows 10 - Linux CentOS 7 - macOS 10.13 (High Sierra)
Earliest version tested
Nuke 12.0v6
- This issue doesn't appear in this version and has regressed
We're sorry to hear that
Please tell us why