Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. How to solve this error?

How to solve this error?

Scheduled Pinned Locked Moved Unsolved Qt for Python
11 Posts 2 Posters 767 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Beginner_to_code
    wrote on last edited by Beginner_to_code
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      B 1 Reply Last reply
      0
      • SGaistS SGaist

        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.

        B Offline
        B Offline
        Beginner_to_code
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          B 1 Reply Last reply
          0
          • SGaistS SGaist

            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.

            B Offline
            B Offline
            Beginner_to_code
            wrote on last edited by
            #5

            @SGaist I am a beginner to pyqt5.I don't know how to do that....

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Then you should start by reading the documentation and maybe follow a tutorial.

              Make your slot a proper member of your class.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              B 1 Reply Last reply
              1
              • SGaistS SGaist

                Then you should start by reading the documentation and maybe follow a tutorial.

                Make your slot a proper member of your class.

                B Offline
                B Offline
                Beginner_to_code
                wrote on last edited by
                #7

                @SGaist Inside that class i need to define the slot right?

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  That's what I wrote yes.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  B 2 Replies Last reply
                  0
                  • SGaistS SGaist

                    That's what I wrote yes.

                    B Offline
                    B Offline
                    Beginner_to_code
                    wrote on last edited by
                    #9

                    @SGaist Will u refer any book or tutorials?

                    SGaistS 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      That's what I wrote yes.

                      B Offline
                      B Offline
                      Beginner_to_code
                      wrote on last edited by
                      #10

                      @SGaist Thanks..

                      1 Reply Last reply
                      0
                      • B Beginner_to_code

                        @SGaist Will u refer any book or tutorials?

                        SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @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.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved