There are something's easier in slot method. I'm just trying to learn all the possibles just to be flexible.
That's what I thought when I saw this: @time 13:32, Line 23
http://youtu.be/0vvb7Kv59qA
Then I tried it in my script, and it didn't work.I even duplicated the setup he has. I used QtDesigner instead of writing it out,but I can't seem to understand what he is doing different to make line 23 work.
Hahaha, there's another guy in Spain, I'm trying to find his video again, who does Signals and slots in a different way also. He uses some weird syntax.
By the way, I'm not doing any projects or anything. just studying QT in my spare time.and I thank you very much, again, for helping me understand things.
cheers!
I figured it out. I need to write it this way:
QtCore.QObject.connect(self.myButton, QtCore.SIGNAL('clicked()'), myFunction)
The clouds have cleared, and now everything hooks up well.![]()
Bookmarks