hi,
u should disconnect all the buttons.should I use disconnect() to disconnect all signals
one button's disconnect will disconnect only that signal.
hope it helps
Bala
hi,
u should disconnect all the buttons.should I use disconnect() to disconnect all signals
one button's disconnect will disconnect only that signal.
hope it helps
Bala
hi wysota,
thnks fr ur reply
i tried and following are the outputs.I suggest you do that experiment as well, BalaQT.
when i try
Qt Code:
disconnect(btn[0],0,0,0); //disconnect single buttons sigMap->disconnect(); //disconnect all signals from sigMapTo copy to clipboard, switch view to plain text mode
so to disconnect all signals , use sigMap->disconnect();@Tomasz: should I use disconnect() to disconnect all signals (from created buttons) from slots.
Bala
That was not the point. Delete all the objects and see if the connections are still valid.
It's not a feature of qDeleteAll, when you delete a particular object, its connections are always broken. qDeleteAll is an equivalent of:
Qt Code:
foreach(item *i, container){ delete i; }To copy to clipboard, switch view to plain text mode
Tomasz (2nd December 2010)
Bookmarks