This is a zip file of the Exlipse project if anyone cares to take a look. At
this point I am trying to figure out why the dragEnterEvent in
compassTreeView.py doesn't cause a move action when source is self.
http://python.6.n6.nabble.com/file/n4931964/CompassGui.zip CompassGui.zip
--
View this m
No problem, Bart. Thanks for replying. I think I am on the right track (a
right track) now. There seems to be many different ways to do what I am
trying to accomplish, but I haven't gotten the hang of quickly figuring out
the documentation and I am running out of time on this project. I think it
w
More progress. I now have the two MineData types working so that a node
dropped into the target tree is created with a different MIME_TYPE and in
the dopMimeData method of the target model I have at the bottom:
. . .
if (mimedata.hasFormat('target_type')):
self.removeRow(row,parentIndex)
It d
I may be talking to myself only, but I am getting closer. I subclassed two
models with different MimeData subclasses of QMimeData giving them different
MIME_TYPE strings. I created two instances of QTreeView, one with each of
the models. One of the models (say model B) is set to accept both of the
hosscomp wrote
>
>
> hosscomp wrote
>>
>> I am looking at the documentation for QAbstractItemView Class. I have
>> created a tree view and I would like it to accept drops from a different
>> view, but also be able to move items within itself. None of the
hosscomp wrote
>
> I am looking at the documentation for QAbstractItemView Class. I have
> created a tree view and I would like it to accept drops from a different
> view, but also be able to move items within itself. None of the
> DragDropMode settings seem to allow that.
I solved it. I had left out the "from cPicke import ..." line in the new
file. I would have expected to get an undefined on those functions, but I
guess they exist somewhere else.
--
View this message in context:
http://python.6.n6.nabble.com/PyQt-Drag-and-Drop-tp4646202p4661198.html
Sent from
JPolk wrote
>
> hey guys,
> I've read all the documentation and for the life of me, I can't find
> the
> solution to initiate simple file filtering (by extension) in
> QFileSystemModel,
> and/or using QDirModel / QDir...
>
> Here's my code:
>
> # --
>