Results 1 to 4 of 4

Thread: Manage correctly QListView item

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Symbian S60 Maemo/MeeGo

    Default Re: Manage correctly QListView item

    Hi,
    I have implemented an QAbstractListModel and I used it for manage the element inside a ListView.
    Now I had another problem.
    I have 2 ListView:
    - the first list is full of element
    - the second list is empty
    I also have an addButton and I defined a signal/slot for it.
    How can I move the selected object from the first list , to the second?
    Thanks you

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Manage correctly QListView item

    Copy data from m1, remove data from m1, paste data in m2. You could have a look at some item view examples and drag 'n' drop examples.
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

Similar Threads

  1. Item width in QListView
    By bepaald in forum Qt Programming
    Replies: 0
    Last Post: 17th August 2010, 13:42
  2. Expand item in QListView
    By Kode.Cooper in forum Qt Programming
    Replies: 5
    Last Post: 30th December 2009, 08:22
  3. QListview set selected item
    By Freeman551 in forum Qt Programming
    Replies: 1
    Last Post: 25th December 2009, 00:17
  4. Add new item to a QListView
    By graciano in forum Newbie
    Replies: 2
    Last Post: 18th August 2009, 18:49
  5. how to move item up and down in QListView
    By zhanglr in forum Qt Programming
    Replies: 3
    Last Post: 1st August 2008, 14:39

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.