PDA

View Full Version : Runtime error



nina1983
11th September 2008, 14:18
Dear,

I'm implementing a QTreeWidget with drag and drop features.
The general elements belonging to the tree is setted with these flags:

item1->setFlags(item->flags() & ~(Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled));

Then only for the elements I want to drag I'm setting all these flags:

item2->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsDragEnabled | Qt::ItemIsUserCheckable);

It compiles and runs but when I try to drag one element I get the Runtime Error here attached. Really bad!!!!!!!!
Which could be the problem of such errors???

Thank in advance

Annalisa

jpn
11th September 2008, 14:24
Run the application via debugger and get the backtrace/callstack.

nina1983
11th September 2008, 16:37
OK! thanks, I'll try and let you know if I didn't find out the problem!

=)