Lykurg
21st July 2008, 10:51
Hi,
I have a lot of subclassed QGraphicsItems in a scene. Each of them is connected to slot x() of a class which handles the scene and the view. So when calling scene.clear(), all items will be destroyed, but will the connections also be disconnected or must I call this manually by
for (...)
{
scene->items().at(i).disconnect();
}
A brief look at the qt source hasn't made me clever... Thanks
Lykurg
I have a lot of subclassed QGraphicsItems in a scene. Each of them is connected to slot x() of a class which handles the scene and the view. So when calling scene.clear(), all items will be destroyed, but will the connections also be disconnected or must I call this manually by
for (...)
{
scene->items().at(i).disconnect();
}
A brief look at the qt source hasn't made me clever... Thanks
Lykurg