Results 1 to 4 of 4

Thread: Help on QListWidget InternalMove item signal

  1. #1
    Join Date
    Sep 2007
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Help on QListWidget InternalMove item signal

    I need help on QListWidget InternalMove item signal.
    I have a QList keeps track of all items in a QListWidget. So when I drag and drop an item in a same QListWidget I need a signal to rearrange the items in the QList. How can I get that signal? I try to use dragEnterEvent() and dropEvent() but didn't work. I can't use currentRowChanged() or itemPressed() signal because they are used for other things.

  2. #2
    Join Date
    Sep 2007
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Help on QListWidget InternalMove item signal

    Can anyone help me to get the signal in drag and drop of InternalMove mode?

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Help on QListWidget InternalMove item signal

    Hi,

    maybe QListView::indexesMoved(...) could help you.

    Lykurg

  4. #4
    Join Date
    Sep 2007
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Help on QListWidget InternalMove item signal

    QListView::indexesMoved(...) signal does not work, so I use eventFilter() to catch the event for internalmove in QListWidget. Whenever I drag and drop within QListWidget it will send QEvent::ChildRemoved event.

Similar Threads

  1. pthread instead QThread
    By brevleq in forum Qt Programming
    Replies: 8
    Last Post: 23rd December 2008, 07:16
  2. Connection of custon signals/slots
    By brevleq in forum Qt Programming
    Replies: 2
    Last Post: 23rd December 2008, 07:04
  3. QListWidget and selecting an item
    By invictus in forum Newbie
    Replies: 4
    Last Post: 19th June 2007, 11:59
  4. Replies: 1
    Last Post: 19th April 2007, 22:23
  5. extract item from QListWidget
    By impeteperry in forum Qt Programming
    Replies: 2
    Last Post: 13th May 2006, 19: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.