Hello there, I’ve been using Qt for a while and it is great, however I encountered a problem in the newer version.
When I start dragging and drop immediately – application just crashes with an error message “Access violation reading location”, I swear I checked everything twice, made a lot if/else for sanity checks, still nothing. (looked into sample code, documentation, everything)
It crashes before it gets a chance to call dropEvent() function, it doesn’t even leave QDrag::exec().
What could it be? I have no debugging symbols and call stack is just helpless.
Drag and drop action happens between two QMainWindows that are owned by the main QMainWindow (dragging from QListWidget and dropping to QTableWidget that are inherited by custom classes).
It is crashing in both Debug and Release.
P.s. if I wait a little before dropping all seems to be working and following drops can be made immediately without read access violations.
Could it be because of Qt loading dlls at first drag/drop action?
!http://i.imgur.com/VJre463.png(Screen_of_the_call_stack)! (probably worthless) :(
Thanks for any help!
—-Environment
Windows 7 ×64 SP1
Qt 5.0.0 (one that is provided with installer)
Visual Studio 2010 SP1
↧