It depends on how you want use it, but normally a widget is a good choice:
Qt Code:
  1. QWidget* GestioneClienteDialog::creaItemCliente(Domain::Persona c)
  2. {
  3. QWidget* widget = new QWidget();
  4. //your code like
  5. widget->setLayout(boxEsterno)
  6. return widget;
To copy to clipboard, switch view to plain text mode 
Make sure that the receiver sets a valid parent for the widget.