I'm fairly new to Qt. Initially I was using QTableWidget with 10000 rows, and had a bunch of signal/slots per row, and the performance was terrible.

But now, I have a QTableView working using a subclassed QAbstractTableModel. I'm looking at the documentation but am confused as to how the memory management works for large amounts of data.

How are rows "de-allocated" and do I need to "disconnect" the signal/slots for scrolled-off rows to keep the total active signal/slots low?