Dusan Zatkovsky skrev:
> Here is a code:
>
> main() {
>
> QApplication.initialize(args);
> QSystemTrayIcon tray = new QSystemTrayIcon();
>
> TrayHandler h = new TrayHandler();
> tray.activated.connect(h, "slotMyTrayActivated()"); //
> success
> tray.activated.connect(h, "slotFoo(ActivationReason r)"); // fail
>
>
The argument name is not part of the signature of a method, and should
not be specified when connecting to the slot. Thus,
tray.activated.connect(h, "slotFoo(ActivationReason)");
will probably work better. You can also use the error message you quoted
for a suggestion on how you could have specified the signature to make
it work:
Possible matching methods:
slotFoo(com.trolltech.qt.gui.QSystemTrayIcon$ActivationReason)
This suggestion gives you the full signature of the method to which you were
trying to connect.
-- Eskil
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest