Unsolved [Solved]what is the usage of Q_PRIVATE_SLOT?
what is the usage of Q_PRIVATE_SLOT? is it useless?
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
Ratzz last edited by Ratzz
@TheBadger thank you
Ratzz last edited by
Once your problem is solved please use the Topic Tools button to mark as Solved.