Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Unsolved [Solved]what is the usage of Q_PRIVATE_SLOT?

    General and Desktop
    3
    6
    3334
    Loading More Posts
    • 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.
    • O
      opengpu2 last edited by opengpu2

      what is the usage of Q_PRIVATE_SLOT? is it useless?

      Ratzz 1 Reply Last reply Reply Quote 0
      • TheBadger
        TheBadger last edited by TheBadger

        I did not know about it, but after some searching and reading up I came across this link: http://kunalmaemo.blogspot.co.za/2010/09/using-signalslot-with-private.html

        So in short if you use opaque or d-pointers the Q_PRIVATE_SLOT is used to connect a slot to a method in the private member class.

        Edit: Look at the links that @Ratzz gave below rather for better information.
        From there you would see that for Qt > 5 with C++11 it is useless


        Check out my SpellChecker Plugin for Qt Creator @ https://github.com/CJCombrink/SpellChecker-Plugin

        O 1 Reply Last reply Reply Quote 0
        • Ratzz
          Ratzz @opengpu2 last edited by Ratzz

          You will find something here / here.

          --Alles ist gut.

          1 Reply Last reply Reply Quote 1
          • O
            opengpu2 @TheBadger last edited by

            @TheBadger thank you

            1 Reply Last reply Reply Quote 0
            • Ratzz
              Ratzz last edited by

              Once your problem is solved please use the Topic Tools button to mark as Solved.
              Thank you!

              --Alles ist gut.

              O 1 Reply Last reply Reply Quote 0
              • O
                opengpu2 @Ratzz last edited by

                @Ratzz thanks

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post