I've checked editTriggers->DoubleClicked in designer, but when i click twice on item of my listWidget nothing happens.
Also clicking F2 doesn't make any result.
Where's the problem?
Thanks a lot!
PS. I'm using Qt Creator candidate release.
I've checked editTriggers->DoubleClicked in designer, but when i click twice on item of my listWidget nothing happens.
Also clicking F2 doesn't make any result.
Where's the problem?
Thanks a lot!
PS. I'm using Qt Creator candidate release.
Is your item editable ? If not set it editable .
Macok (17th February 2009)
Thanks, I have one more question:
Is there any way to create listWidget where all items are editable?
Becouse callingeverytime I add anything to the list is boring.Qt Code:
item->setFlags(Qt::ItemIsEditable|Qt::ItemIsSelectable|Qt::ItemIsEnabled|Qt::ItemIsUserCheckable);To copy to clipboard, switch view to plain text mode
I was also looking for it today, but didnt come across it yet.
You will have to iterate over the items and set their flags.
But this limits you set flags whenever you add items.
I agreeeverytime I add anything to the list is boring.
I used a trick, but not sure if its best thing to do -
I connected currentChanged signal to a slot, and in this slot I set the flags of the current item .
It helps in a way that you dont need to be bothered to set flags everytime u add items
Macok (17th February 2009)
Ok, thanks for help.
Bookmarks