Hi everyone, I'm trying to modify the sources codes of wireshark QT but apparently I can't add new slots. I mean i added in main_windows.h my declaration, void PingCouter(); in mainwindows_slot.cpp my code
and in main_windows.cpp my connect slot
I have no compilation errors but i have a runtime message :
I watched in mocmainwindows.cpp to be sure that my slot was here but it is not. therefore i think there is a problem here but i don’t know how to resolve this one. thanks for your help asked 29 Sep ‘15, 06:43 Hystreal edited 29 Sep ‘15, 06:49 grahamb ♦ |
2 Answers:
You should hop over to the developers mailing list, that's were we all hang out discussing these things. Come and join us. answered 29 Sep '15, 06:50 Jaap ♦ |
Is "void PingCouter();" listed under a "slots:" section in main_window.h? The primary difference between slots and regular C++ member functions is that the "moc" utility adds slots to a function table. Without a defined slot, "connect" won't find an entry in the table. answered 29 Sep '15, 09:22 Gerald Combs ♦♦ Yes it is in public slot section (29 Sep '15, 09:24) Hystreal |
Any idea ?
i sent a mail to the developers mailing list but i have no feedback.
There was a response on the 30th, by Graham Bloice.
oh sorry i'm new on this, i thought that i'll receive an email. But now i don't know how to answer.
Have you actually used "Subscribing to Wireshark-dev"? or just dropped a mail to [email protected] ? In the former case you get echoed all discussion, in the later it's a one way street.
Anyways, you can always dig into the archive
Yes i used "subscribing to wireshark-dev", i found my post but i don't know how to answer. i mean i don't know if i have to send another mail or if there is an answer button?