dkite
11th March 2006, 22:22
I would like to have a tableview, getting data from a relational sql model. The tableview would display a few of the fields of the table, but when a row is selected, allow editing of all the fields in some kind of dialog type widget contained within an enlarged row of the table view.
The delegate classes draw and edit cells, ie a certain row/column. You can paint or customize the cell, but not the whole row at a time. Or so I can determine.
Obviously I'm going to have to subclass a bunch of things, but where would a person start? Which class initiates the drawing sequences, initiates the what eventually calls the delegate to generate an editor?
I thought of modifying the model class to output a 1 column tableview, then painting the wide cell with the fields in the unselected rows. The selected row would be made larger, and a widget with editing widget children used. Does that make sense?
Thanks
Derek
The delegate classes draw and edit cells, ie a certain row/column. You can paint or customize the cell, but not the whole row at a time. Or so I can determine.
Obviously I'm going to have to subclass a bunch of things, but where would a person start? Which class initiates the drawing sequences, initiates the what eventually calls the delegate to generate an editor?
I thought of modifying the model class to output a 1 column tableview, then painting the wide cell with the fields in the unselected rows. The selected row would be made larger, and a widget with editing widget children used. Does that make sense?
Thanks
Derek