Results 1 to 4 of 4

Thread: I want to edit listview's item using contextmenu. How to?

  1. #1
    Join Date
    Jul 2012
    Posts
    23
    Thanks
    3

    Default I want to edit listview's item using contextmenu. How to?

    I can edit listview's item when I doubleclicked item.
    I using code
    Qt Code:
    1. setEditTriggers(QAbstractItemView::DoubleClicked | QAbstractItemView::SelectedClicked);
    To copy to clipboard, switch view to plain text mode 

    AND I want to editing item by contextmenu.

    I want to :
    when I select rename action,
    item's state change editable, like this:
    Attachment 8090 -> Attachment 8089

    How to I want DO?
    It's so hard...

    PLEASE HELP ME!

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: I want to edit listview's item using contextmenu. How to?

    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. #3
    Join Date
    May 2012
    Posts
    136
    Thanks
    2
    Thanked 27 Times in 24 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: I want to edit listview's item using contextmenu. How to?

    melody

    I think it's enough to post 1 thread not 2

  4. #4
    Join Date
    Jul 2012
    Posts
    23
    Thanks
    3

    Default Re: I want to edit listview's item using contextmenu. How to?

    spirit
    My question is not how to make contextmenu...

    StrikeByte
    Sorry I will don't it next time.

Similar Threads

  1. Replies: 2
    Last Post: 3rd August 2012, 11:05
  2. listview item focusing
    By addu in forum Qt Programming
    Replies: 7
    Last Post: 18th August 2009, 07:07
  3. Set default Selected item in ListView (QSqlQueryModel)
    By jeffpogo in forum Qt Programming
    Replies: 0
    Last Post: 26th May 2009, 22:12
  4. getting clicked item from listview
    By addu in forum Qt Programming
    Replies: 6
    Last Post: 14th May 2009, 10:33
  5. Replies: 8
    Last Post: 15th May 2007, 09:21

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.