PDA

View Full Version : nested QTableView objects



Schluchti
8th February 2014, 14:06
Hello,

I am not sure, if I got the QT model/view concept.

What I want to do, is to create a complex table. However, instead of creating this complex table all at once, I thought about creating a bunch of small tables and put them in a larger table. I sucessfully created my submodules (basically these are QTableView objects with different underlying models), but I don't know how I can integrate these submodules into my main QTableView.

My first attempt was to use a QTableWidget as my main module and integrate the submodules with the setCellWidget() method, but with this approach I can not freeze the first column.

How can I put a QTableView in a QTableView? Or is there a better approach for this kind of problem?

Thanks a lot!

Kind Regards
Bernhard