In this simple programm I have an array
my_array = [['00','01','02'],
['10','11','12'],
['20','21','22']]
my_array = [['00','01','02'],
['10','11','12'],
['20','21','22']]
To copy to clipboard, switch view to plain text mode
which will be given to the constructor of the model.
tablemodel = MyTableModel(my_array, self)
tablemodel = MyTableModel(my_array, self)
To copy to clipboard, switch view to plain text mode
At this stage I simply want to display my model. Later on I will add the necessary methods where I can add items to the model. Or do I need these methods already for the sorting/filtering?
As for "emmiting signals" I am not sure what you are getting at. I know the idea behind the signal/slot thing, but I don't see where I need it in my model or view.
Bookmarks