How to solve this error?
-
This post is deleted!
-
Hi,
Please use coding tags around your code.
Your clicked method is a free function. The signature of the signal you are using contains a Boolean parameter hence the error you get.
-
Hi,
Please use coding tags around your code.
Your clicked method is a free function. The signature of the signal you are using contains a Boolean parameter hence the error you get.
This post is deleted! -
Why do you have slots as free functions in the first place ? Especially when you are accessing your class internal objects.
Fix that and it will work better.
-
Why do you have slots as free functions in the first place ? Especially when you are accessing your class internal objects.
Fix that and it will work better.
@SGaist I am a beginner to pyqt5.I don't know how to do that....
-
Then you should start by reading the documentation and maybe follow a tutorial.
Make your slot a proper member of your class.
-
Then you should start by reading the documentation and maybe follow a tutorial.
Make your slot a proper member of your class.
@SGaist Inside that class i need to define the slot right?
-
That's what I wrote yes.
-
@SGaist Will u refer any book or tutorials?
-
@SGaist Thanks..
-
@SGaist Will u refer any book or tutorials?
@Beginner_to_code said in How to solve this error?:
@SGaist Will u refer any book or tutorials?
I already did in this answer:
@SGaist said in How to solve this error?:
Then you should start by reading the documentation and maybe follow a tutorial.
Make your slot a proper member of your class.