Results 1 to 1 of 1

Thread: QTabWidget Drag & Drop to tab

  1. #1
    Join Date
    Jun 2009
    Location
    Kraków, Poland
    Posts
    23
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default QTabWidget Drag & Drop to tab

    I wrote a topic in 'Newbie' section, but noone did answer, so I'm gonna try here:

    I've my own subclassed QTabWidget & QTabBar. On every page of QTabWidget I have QListWidget, and I want to make possible to drag items from one list and dropping them on one of tabs, what would result in adding dragged item to this tab's QListWidget.

    How to do it?

    (got dragEnterEvent() and dragMoveEvent() and they are working properly, dropEvent() is called, but I can't "rethrow" it to particular QListWidget)

    I read D&D tutorial, (not sure if I've undestood all, though :P) tried reimplementing dropEvent, eventFilter, posting own QDropEvent to list... Nothing worked.
    What's The Right Way?
    Last edited by Fenix Voltres; 2nd March 2010 at 21:17.

Similar Threads

  1. Replies: 1
    Last Post: 27th February 2010, 11:39
  2. QTabWidget drag and drop
    By ComaWhite in forum Qt Programming
    Replies: 1
    Last Post: 4th May 2009, 13:03
  3. Drag and Drop a widget in and out QTabWidget
    By smarinr in forum Qt Programming
    Replies: 1
    Last Post: 11th December 2008, 19:10
  4. QTabWidget: Switch tab on drop
    By kghose in forum Qt Programming
    Replies: 1
    Last Post: 28th November 2008, 19:31
  5. Drag and Drop (drop example)
    By din9 in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2006, 18:03

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.