Hello, i have problems using QAbstractTableModel.
First, here is my code: http://pastebin.com/m2193e552 My TableModel is very simple. It should show some data from an ArrayList of my program. The ArrayList is part of my program and is only referenced in the TableModel (via Constructor). So far so good. I manipulate the ArrayList outside the TableModel, eg in a Main-Method. For example i add 3 objects to the ArrayList. This works fine. The columnCount()-function of the TableModel is called. But i don't know why! How is the program recognizing, that there were some Objects added to the ArrayList? But the crazy thing is, that the data() function will never be called and no rows were shown. Even if i call the dataChanged.emit()-method nothing happens. The Table stays empty. Can you help me? I already read the documentation and had a look at the Spreadsheet.java-Example. But i cannot find my mistake. Best Regards, Manuel _______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
