You'd have to use a custom widget, you could create one in code like this in your delegate's createEditor()
function/ Something along these lines:
QFrame *frame = new QFrame();
frame->setLayout( new QHBoxLayout() );
frame->layout()->addWidget( new QLineEdit() );
frame->layout()->addWidget( new QToolButton() );
return frame;
Or you could create a custom widget with designer and return one of those.