PDA

View Full Version : About Q_PRIVATE_SLOT



Connailo
20th October 2014, 08:37
Hello ,everyone:
I've been tried to create a class contained a private class .10680 Forgive my poor English. When I used the Marcos Q_PRIVATE_SLOT, it goes wrong with saying that "invalid use of incomplete type ". How to solve this problem? Thanks!

wysota
20th October 2014, 08:40
Place a "#include crasy.moc" line at the end of your cpp file.

Connailo
20th October 2014, 09:41
Thanks for your replay.I've added the "#include "moc_crasy.cpp"" line at the end of the cpp file. But that does not work .


Place a "#include crasy.moc" line at the end of your cpp file.

Thanks for your replay.I've added the "#include "moc_crasy.cpp"" line at the end of the cpp file. But that does not work .

Added after 17 minutes:


Place a "#include crasy.moc" line at the end of your cpp file.
I rebuild it,work well.thanks!