Results 1 to 4 of 4

Thread: Control Drag Operation

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2011
    Posts
    212
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    24

    Default Control Drag Operation

    Hello forum,

    I am attaching an image where i have loaded a tree item into the tree view . Each of the item are draggable into the scene. But some of the tree items are not draggable based on their internal characteristics.

    How can i do this ? I tried the following


    Qt Code:
    1. if(node->getAbstract())
    2. setAcceptDrops(false);
    To copy to clipboard, switch view to plain text mode 

    But i can drag the item which is supposed to be non-draggable.


    Any hint?

    Please Look at the attachment

    Regards
    Sajjad
    Attached Images Attached Images

Similar Threads

  1. QTreeView find out when the drag operation ends
    By mentalmushroom in forum Qt Programming
    Replies: 2
    Last Post: 4th October 2011, 07:37
  2. Replies: 0
    Last Post: 4th May 2010, 10:24
  3. Replies: 0
    Last Post: 16th December 2009, 09:45
  4. Opposite of |= operation
    By JPNaude in forum Qt Programming
    Replies: 5
    Last Post: 16th November 2009, 12:33
  5. file operation
    By jay in forum Qt Programming
    Replies: 3
    Last Post: 7th May 2009, 11:19

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
  •  
Qt is a trademark of The Qt Company.