On Tue, 23 Dec 2008 22:27:02 +0200
"Ville M. Vainio" <[email protected]> wrote:
> > I have a qt interface which looks the same ready to go, but I've
> > been having trouble getting the slots and signals connected.
>
> Yes, the problem with signals and slots is that the signal name needs
> to be correct, with the correct c++ signature in the string. People
> get bitten by this quite often. What signal names cause you the
> trouble? Did you try google.com/codesearch to see how others are using
> the same signal?
I tried doing it in designer-qt4, with both "clicked()" and
"clicked(bool)", and for the slots both "doSomething()" and
"doSomething(self)" but .setupGui() always gave insufficient args.
to ...connect().
Attempting no links in designer-qt4 and trying manually with
self.connect(self.markSource, QtCore.SIGNAL("clicked()"), self,
QtCore.SLOT('markSource(self)'))
it was accepted, but clicking the button didn't trigger the expected
print statement.
Hmm, I'm seeing an odd bug in the plugin now I need to fix before more
attempts.
Cheers -Terry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---