PDA

View Full Version : How to edit view item with a modal dialog?



e79ene
26th March 2010, 15:12
Hello!

I need to edit QTableView's items with a modal dialog. I.e. when user double clicks the cell special modal dialog should be opened. As soon as user accepts modifications the dialog should be closed and the data set to the model item.

Please give an advice.
How can I implement this behavior.
Should I provide a delegate class or not?

Thanks.

Lykurg
26th March 2010, 15:57
just use signal and slots. On double click -> open a modal dialog with the value -> after accepting the dialog, update the model.