View Full Version : Runtime error

11th September 2008, 13:18

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


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

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