Results 1 to 2 of 2

Thread: QTabWidget: Switch tab on drop

  1. #1
    Join Date
    Jul 2008
    Location
    East Coast, USA
    Posts
    40
    Thanks
    6
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question QTabWidget: Switch tab on drop

    Hi Guys,

    How do I set up things such that I can drag an item from an element in the current tab and drop it onto an element in another tab? For instance, in firefox, when you have multiple tabs hovering your mouse over a tab in the middle of a drop will switch that tab in. QT's tabwidget does not show that behavior.

    Thanks
    -Kaushik

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QTabWidget: Switch tab on drop

    Reimplement drag events or mouse move events for the tabbar and switch the tab if the mouse hovers over it long enough.

Similar Threads

  1. Strange behavior with Drag and Drop (not always drops)
    By Mona Shokrof in forum Qt Programming
    Replies: 1
    Last Post: 27th May 2007, 18:00
  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.