Results 1 to 6 of 6

Thread: Drag 'n drop Tab inside and outside the Main Application

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Sep 2008
    Posts
    54
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    3
    Thanked 10 Times in 5 Posts
    Wiki edits
    2

    Default Re: Drag 'n drop Tab (Tear-off Detach TearOff Tabs)

    I solved the issues I had with the Detachable / Tear-Off Tabs and thought it might be nice to give you all the solution:

    Here the files are: DetachTabExample.pro

    Solved issues:

    1. TabBar update solved by turning off Moving while drag is initiated (Trick in TabBar::mouseMoveEvent)
    2. Widget not visible after reparent: call setVisible or show. The funny thing is that the Attach does work without setVisible.
    3. Wrong Tab: Called TabWidget for index / text after a reparent. Solved this. Also some interference due to movable tabs.
    4. 5. 6. 7. All solved by turning off movable tabs.

    Now I have two remaining features left:

    1. In the drag I show a screen shot off the widget. It would be nice if the Tab is shown also in that screen shot.
    2. It would be nice if a drag returns in the TabBar the Drag would stop and the move would continue.

    Hope somebody is helped with this solution.

    Regards,

    Marcel

  2. The following 2 users say thank you to mstegehu for this useful post:

    RazZziel (4th February 2014)

Similar Threads

  1. Drag and drop inside and outside a Widget
    By utopia500 in forum Qt Programming
    Replies: 1
    Last Post: 4th May 2010, 16:20
  2. Drag and drop inside and outside a Widget
    By utopia500 in forum Qt Programming
    Replies: 0
    Last Post: 3rd May 2010, 13:42
  3. Drag and Drop item inside QTreeWidget
    By nina1983 in forum Qt Programming
    Replies: 4
    Last Post: 6th July 2008, 11:43
  4. Preventing drop/drag outside the main window
    By ucomesdag in forum Qt Programming
    Replies: 5
    Last Post: 26th February 2007, 10:42
  5. Drag and drop outside the application
    By jpn in forum Newbie
    Replies: 7
    Last Post: 27th August 2006, 15:37

Tags for this Thread

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.