So I was implementing drag and drop in a Qt widget today.
This worked.
This resulted in a backtrace.
Yay for buggy library implementations and bindings Of course, that last picke.loads() call serves no real purpose at all. This one was nice to track down...
This worked.
Code:
print "original:", addresses
raw = str(pickle.dumps(addresses))
bytes = QByteArray.fromRawData(raw)
print "unpickled before drag:", pickle.loads(str(bytes))
This resulted in a backtrace.
Code:
print "original:", addresses
raw = str(pickle.dumps(addresses))
bytes = QByteArray.fromRawData(raw)
Yay for buggy library implementations and bindings Of course, that last picke.loads() call serves no real purpose at all. This one was nice to track down...