if I understood properly then you can use QComboBox whith set property
Qt Code:
  1. void setEditable ( bool editable )
To copy to clipboard, switch view to plain text mode 
editable == true. this property allow to add entered values in QComboBox immediately by pressing Enter.