Matt 0000 wrote:
> 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)
> *
Hi Matt,
I cannot reproduce this with either javac 1.5 or 1.6 nor with Eclipse
Europa and its built-in compiler. The error doesn't really make too much
sense either. fromNativePointer is a static function that is present in
pretty much all Qt Jambi classes, and overriding a static function with
a different return type is perfectly valid. Could you try this on a the
javac compiler shipped with the jdk?
best regards,
Gunnar
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest