[Qt-jambi-interest] Error on connecting QCheckBox.toggledwith QDialog.setVisible(boolean)

Curt Nowak cnowak at bwl.uni-hildesheim.de
Fri Jul 4 11:51:53 CEST 2008


Hi Waldemar,

this must be a case of what Eskil explained:
<quote>
> If the Generator sees a
> function in a QObject subclass (such as QDialog) which is not set as a 
> slot in C++, and thus not intended to be a slot in the API, then it will 
> mark it with a @QtBlockedSlot annotation in Java. This means the method 
> will not be connectable and will not turn up in lists over available 
> slots in Designer etc. 
</qoute>
If you take a look at http://doc.trolltech.com/4.4/qtreeview.html you'll see setAnimated(bool) only as a function, but not as a slot.

Curt


-----Ursprüngliche Nachricht-----
Von: qt-jambi-interest-bounces at trolltech.com [mailto:qt-jambi-interest-bounces at trolltech.com] Im Auftrag von Waldemar Wittmann
Gesendet: Freitag, 4. Juli 2008 11:44
An: Eskil Abrahamsen Blomfeldt; qt-jambi-interest at trolltech.com
Betreff: Re: [Qt-jambi-interest] Error on connecting QCheckBox.toggledwith QDialog.setVisible(boolean)
Hi Eskil and all,

i think the same or a bit different problem is with QTreeView ->
setAnimated(boolean)

If I do (in the constructor) of an arbitrary Class with a reference "view" on QTreeView: checkBox.toggled.connect(view,
"setAnimated(boolean)");

i get: Exception in thread "main" com.trolltech.qt.QNoSuchSlotException:
public final void com.trolltech.qt.gui.QTreeView.setAnimated(boolean)

I do simply:

checkBox.toggled.connect(this, "mySetAnimated(boolean)");
...
}

mySetAnimated(boolean b) {
view.setAnimated(b);
}

and it works ...

regards,
Waldemar

_______________________________________________
Qt-jambi-interest mailing list
Qt-jambi-interest at trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest




More information about the Qt-jambi-interest mailing list