Results 1 to 2 of 2

Thread: Move rows of Qtreeview up and down on button click

  1. #1
    Join Date
    Mar 2014
    Posts
    15
    Thanks
    1
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Move rows of Qtreeview up and down on button click

    Hi,
    I have a treeview and two buttons up and down.
    Now on clicking up button the selected row should be moved up and similarly if down button is clicked then selected row should be moved down.

    I have tried moveRow function but without any success.

    Kindly Help.

  2. #2
    Join Date
    Apr 2012
    Location
    India.
    Posts
    88
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Move rows of Qtreeview up and down on button click

    Hi,
    I have suggestion that on up/down button click you can restructure your row data (up/down) and refresh the table with required row selection change and it should work as you expect.

Similar Threads

  1. Replies: 2
    Last Post: 19th November 2013, 11:31
  2. Replies: 2
    Last Post: 15th August 2011, 00:26
  3. Fetching rows in QtreeView
    By visor_ua in forum Qt Programming
    Replies: 2
    Last Post: 5th July 2008, 18:17
  4. QTreeView rows editable
    By Pesho in forum Qt Programming
    Replies: 5
    Last Post: 13th September 2007, 13:19
  5. [Qt 4.x] Highliting rows in a QTreeView
    By Moppel in forum Qt Programming
    Replies: 3
    Last Post: 10th March 2006, 10:00

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.