Results 1 to 3 of 3

Thread: How to diagnose why a drop isn't allowed?

  1. #1
    Join Date
    Mar 2007
    Posts
    12
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to diagnose why a drop isn't allowed?

    I've been strachting my head over an issue for like two weeks now. I have a Model/View, it accepts drops from other widgets. However it does not allow drops from itself. The other widget and itself both use the same subclass of QMimeData, so it really doesn't make sense.

    Outside of manually going over all the things that are necessary to enable drag and drop... is there an easier why to find out why I get the (x) cursor when I try to drop on itself?

    This is really frustrating, I've looked at the Puzzle example and it seems like I have everything, but I'm apparently missing something.

    The code in question is in:
    svn://anonsvn.kde.org/home/kde/trunk/extragear/multimedia/amarok/src/playlist

    But I'm mostly looking for some technique I can use in general...

    Thanks,
    Ian

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to diagnose why a drop isn't allowed?

    Have u implemented the dragEnter,dragMove and dragDrop events properly ??

    may be somewhere u are rejecting the drops...
    if we cud see the code, it wud help to help better

  3. #3
    Join Date
    Mar 2007
    Posts
    12
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to diagnose why a drop isn't allowed?

    Its a Model/View so you don't implement those methods. The code is available at that SVN directory, the relevant parts being in the PlaylistModel.h/cpp and PlaylistView.cpp.

Similar Threads

  1. Replies: 7
    Last Post: 8th September 2006, 16:19
  2. Drag and drop revisited
    By Big Duck in forum Newbie
    Replies: 2
    Last Post: 30th June 2006, 16:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.