@Eeli-K Thanks for the suggestion it worked and also there is another approach "Component.CreateObject()" in which we can create and destroy objects dynamically.
I tried to understand by reading your description. I should appreciate your patience to write this whole description.
Coming to you issue, you are using model and view with View has single column. You are using the repeater. It is single column there. This requests for index with row and column=0. This is how it works always. If you are using TableView with appropriate TableModel then it will request for row and column values.
You would at least need two radio buttons for that. But it sounds a bit unusual for a UI especially for a database.
Sounds like you want to use both a custom widget using QDataWidgetMapper and a QTableView at the same time.
You're welcome !
Since it's working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)
Also, consider up-voting answer(s) that you found useful, so others may find them more easily.