[Qt-interest] can not create the slot in the main()
go canal
gocanal at yahoo.com
Sat Nov 13 03:21:38 CET 2010
Hello,
I got an error:
"
Exception in thread "main" com.trolltech.qt.QNoSuchSlotException:
Could not find slot with signature: start()"
I am using Jambi 4.5.2
Here is my main class - it starts the Netty network server then goes into the
event loop:
-----------------------
public class Main extends QObject {
public static void main(String[] args) {
QApplication.initialize(args);
// start the Netty server
NettyServer netty = new NettyServer();
netty.receivedURL.connect(Main.class, "start()");
netty.run();
// Qt event loop
QApplication.exec();
}
private void start() {
// do something
}
}
The error message happened when trying to establish the connection,
Any idea? Appreciate your help very much.
thanks,
canal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101112/5fe6777a/attachment.html
More information about the Qt-interest-old
mailing list