Results 1 to 14 of 14

Thread: Drag Drop between Different Views

Threaded View

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

    Question Re: How to drop items in a dock widget ?

    @ Bitto
    Well I already tried what you said.
    But I dont need to drag drop items within the same view. I have to move it between one view and another temporary view.
    I am attaching a snapshot of the application.
    I have a MainWindow derived from QMainWindow. Inside it, I have Frame set as a central widget. This Frame contains two views, and slider/buttons.

    What I need is, drag graphic items(Macro's) from Main view to a temporary view. The temporary view is a class in itself, and if this succeeds I will add this to a dockwdiget.

    I started a QDrag object when mouse pressed on Macro. But due to this I am not able to move the items within the view. How do i manage automatic drag/drop of items within the view, and drag/drop from one view to another. Items donot move beyond the view.
    Attached Images Attached Images

Similar Threads

  1. Drag & drop with model/view (Qt4)
    By yogeshm02 in forum Qt Programming
    Replies: 16
    Last Post: 19th September 2011, 21:36
  2. Drag and drop between model views
    By larry104 in forum Qt Programming
    Replies: 20
    Last Post: 19th January 2008, 17:09
  3. Replies: 7
    Last Post: 8th September 2006, 17:19
  4. Drag and drop revisited
    By Big Duck in forum Newbie
    Replies: 2
    Last Post: 30th June 2006, 17:41
  5. drag and drop with item views
    By castorvert in forum Qt Programming
    Replies: 14
    Last Post: 27th March 2006, 11:12

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.