Hello all,
I am starting a dedicated thread for this in case it gets solved and someone comes along and finds the solution.
I have an application that sets up a QSqlTableModel with filepaths and names etc. On Mac OS dragging from QSqlTableModel by simply overriding mimeData() works a treat but windows is another story.
I have tried the following for windows with no luck:
mime_data = QMimeData()
mime_data.setUrls(files[0])
mime_data.setText(files[0])
b = bytearray()
b.extend(map(ord, files[0]))
mime_data.setData('text/plain', QByteArray(b))
Gist of my basic sqltablemodel:
Has anyone ever gotten tis behaviour to work before? I googled around and someone 12 years ago solved it using pywincom (or so they claim) but I cannot get his example to work, it just kills my app wholesale:
any help would be much appreciated on this!
// Ben