Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved]what is the usage of Q_PRIVATE_SLOT?
Forum Updated to NodeBB v4.3 + New Features

[Solved]what is the usage of Q_PRIVATE_SLOT?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 4.5k Views 1 Watching
  • 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 Offline
    O Offline
    opengpu2
    wrote on 1 Dec 2015, 03:16 last edited by opengpu2 12 Feb 2015, 10:47
    #1

    what is the usage of Q_PRIVATE_SLOT? is it useless?

    R 1 Reply Last reply 1 Dec 2015, 05:36
    0
    • T Offline
      T Offline
      TheBadger
      wrote on 1 Dec 2015, 05:36 last edited by TheBadger 12 Jan 2015, 05:46
      #2

      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 1 Dec 2015, 05:48
      0
      • O opengpu2
        1 Dec 2015, 03:16

        what is the usage of Q_PRIVATE_SLOT? is it useless?

        R Offline
        R Offline
        Ratzz
        wrote on 1 Dec 2015, 05:36 last edited by Ratzz 12 Jan 2015, 05:37
        #3

        You will find something here / here.

        --Alles ist gut.

        1 Reply Last reply
        1
        • T TheBadger
          1 Dec 2015, 05:36

          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

          O Offline
          O Offline
          opengpu2
          wrote on 1 Dec 2015, 05:48 last edited by
          #4

          @TheBadger thank you

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Ratzz
            wrote on 1 Dec 2015, 09:27 last edited by
            #5

            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 2 Dec 2015, 10:47
            0
            • R Ratzz
              1 Dec 2015, 09:27

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

              O Offline
              O Offline
              opengpu2
              wrote on 2 Dec 2015, 10:47 last edited by
              #6

              @Ratzz thanks

              1 Reply Last reply
              0

              1/6

              1 Dec 2015, 03:16

              • Login

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