Hi,
I have the itemChanged signal on tablewidget at every item change, also when I insert a new item.
I need this signal only when the user finish to edit the item. Is possible?
thanks,
Massimiliano
Hi,
I have the itemChanged signal on tablewidget at every item change, also when I insert a new item.
I need this signal only when the user finish to edit the item. Is possible?
thanks,
Massimiliano
Try with the QAbstractItemDelegate::closeEditor signal.
Regards
Hi marcel,
In the Qt class reference I read:
"The QAbstractItemDelegate class is used to display and edit data items from a model."
I use a Item view convenience classes and not model/view architecture.
Can I use this? Ok, I'm new :-) I must read more documentation.
thanks,
nowire75
You have access to the default table widget item delegate, therefore you have access to that signal.
Regards
Hi,
I start whit "Star Delegate Example" and I look this part of code
Qt Code:
void StarDelegate::commitAndCloseEditor() { StarEditor *editor = qobject_cast<StarEditor *>(sender()); emit commitData(editor); emit closeEditor(editor); qDebug("commitData and closeEditor"); }To copy to clipboard, switch view to plain text mode
but I have not a debug message after the star edit.
After this question I go to the beginner thread...
I thought you needed to see when the editing is finished, meaning you had to connect the signal in the delegate to one of your slots.
Why do you emit the signal manually?
Bookmarks