PDA

View Full Version : SIGNALS and SLOTS disconnection



^NyAw^
30th October 2007, 17:03
Hi,

I have a QTreeWidget that have QTreeWidgetItems. This items have widgets at column 2 like QComboBox or QSpinBox. I connect one of the widget(QComboBox or QSpinBox) signal to one of my classes.
This tree is cleared and repopulated with different data.

The question is if I have to disconnect the signals or are automatically disconnected at the moment that the tree is cleared. Note that the internal data is not erased and the tree can be populated with the same data again making another time the connections.

Thanks,

mchara
31st October 2007, 08:01
A signal-slot connection is removed when either of the objects involved are destroyed.
It's written in manual under disconnect method of QObject.