hi all, i need to write this below command,

Qt Code:
  1. ui.groupBox_2->addWidget(endDeviceCombox);
To copy to clipboard, switch view to plain text mode 
but the error came out with "error C2039: 'addWidget' : is not a member of 'QGroupBox'"

is there any other way to add this widget?