'does Qstandarditemmodel removerows removes data from memory?

I have a Qtableview that uses qstandarditemmodel. This table have sensitive information so I want to make sure that all the data from the table is removed from memory as well.

Here is how I clear the table:

self.tableViewModel.removeRows(0, self.tableViewModel.rowCount())

Does this remove the data from memory as well?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source