PDA

View Full Version : Problem with drag&drop in qlistview



mambo
8th September 2006, 09:47
Hi everybody,

I'm developping an application using QT3 and visual C++6.
One of my interfaces contains 2 qlistview objects where I can drag one element from the first and drop it in the second.
It worked fine until I added this line in my main function:


HRESULT hr = CoInitializeEx(NULL,COINIT_MULTITHREADED );

What am I doing wrong?

Thanks for helping me.

mambo
11th September 2006, 16:50
No body has seen this problem before?

wysota
11th September 2006, 17:14
Apparently the problem is with WinAPI not with Qt. Maybe if you describe what exactly happens someone will be able to help you. Maybe this line spawns some thread which ruins the QApplication object?