PDA

View Full Version : I want to edit listview's item using contextmenu. How to?



melody:p
3rd August 2012, 10:36
I can edit listview's item when I doubleclicked item.
I using code


setEditTriggers(QAbstractItemView::DoubleClicked | QAbstractItemView::SelectedClicked);


AND I want to editing item by contextmenu.

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

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

PLEASE HELP ME!

spirit
3rd August 2012, 10:55
Did you try to use search by forum?
http://www.qtcentre.org/threads/18929-QTreeWidgetItem-have-contextMenu?p=93472#post93472
http://www.qtcentre.org/threads/17726-Multiple-Context-Menus?p=88360#post88360
http://www.qtcentre.org/threads/15696-QListWidget-context-menu-using-Designer?p=79859#post79859
....

StrikeByte
3rd August 2012, 11:14
melody:p

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

melody:p
6th August 2012, 01:40
spirit
My question is not how to make contextmenu...

StrikeByte
Sorry I will don't it next time.