hi, im working on a simple maemo media application. its located here: https://garage.maemo.org/projects/womp/.
untill now ive been programming mostly in qtcreator and only tested natively on linux. today i tested the app in scratchbox, it compiles without any trouble, but when i test it i get an error i havent seen when ive tested on linux.
this happens when i try to clear a subclass of qabstracttablemodel with an overrided method called removeRows (mostly taken from an qtexample). the class can be found here:Code:ASSERT: "last >= first" in file kernel/qabstractitemmodel.cpp, line 2110 /usr/bin/run-standalone.sh: line 11: 23645 Aborted (core dumped) "$@"
https://garage.maemo.org/plugins/scm...mp&view=markup
this is the overrided method:
i believe that its the beginRemowRows(..) method thats responsible, but im not sure. again, this works perfectly on linux.Code:bool TrackTableModel::removeRows(int position, int rows, const QModelIndex &index) { Q_UNUSED(index); beginRemoveRows(QModelIndex(), position, position+rows-1); // trackList.clear(); for (int row=0; row < rows; ++row) { trackList.removeAt(position); } endRemoveRows(); return true; }
so im wondering if im doing something fundamentally wrong, or if this is in fact a bug.
is phonon expected to work in scratchbox btw? i tried on both armel and x86 and it fails to play any tracks (different reason why it fails).
another question. do you recommend that i use "standard" qt classes or should i use maemo specific qt classes. if so, are there any code examples on how these are used?
sorry if this have been answered before, i tried to search but couldnt find much.

Reply With Quote


