Have a look here. You have to implement QApplication::commitData().