Probably everyone in this forum have already solved this silly problem.
After reading the documentation in
http://doc.trolltech.com/qtjambi-4.3.4_01/doc/html/com/trolltech/qt/model-view-model-subclassing.html
a skeleton test class written below won't compile.
package com.test;
import com.trolltech.qt.QNativePointer;
import com.trolltech.qt.core.QModelIndex;
import com.trolltech.qt.gui.QAbstractTableModel;
public class *ExampleModel* extends QAbstractTableModel {
public int columnCount(QModelIndex parent) {
return 0;
}
public Object data(QModelIndex index, int role) {
return null;
}
public int rowCount(QModelIndex parent) {
return 0;
}
}
**
The error is highlighted on ExampleModel and is stated as:
*The return type is incompatible with
QObject.fromNativePointer(QNativePointer),
QAbstractItemModel.fromNativePointer(QNativePointer),
QAbstractTableModel.fromNativePointer(QNativePointer)
*
Current Environment
===============
OS: WinXP
IDE: Eclipse 3.2.2
Binary: QTJambi-OpenSource-4.3.4_01
Plugin: qtjambi-eclipse-integration-win32-4.3.4_01-mingw.zip
<http://doc.trolltech.com/qtjambi-4.3.4_01/doc/html/com/trolltech/qt/model-view-model-subclassing.html>
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest