[Qt-interest] Submitting changes in a QTableView

Israel Brewster israel at frontierflying.com
Thu Jul 9 20:07:38 CEST 2009


What about QAbstractItemModel::submit() ? Or does that not close the  
editor first?
-----------------------------------------------
Israel Brewster
Computer Support Technician II
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Israel Brewster.vcf
Type: text/directory
Size: 397 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090709/c067e611/attachment.bin 
-------------- next part --------------


On Jul 8, 2009, at 9:46 PM, Lars Amsel wrote:

> Alex,
>
> Malyushytsky, Alex wrote:
>> Through the calls to the following?
>>
>> void QAbstractItemView::commitData ( QWidget * editor )
>> void QAbstractItemView::closeEditor ( QWidget * editor,
>
> Thanks for your reply. Both slots are protected, so I can't call  
> them without
> subclassing. Furthermore I do not know directly which editor I have  
> to pass to
> the method. This seems to me to much effort for such a simple task.  
> I thought
> about a method like stopEdit() or finishEdit() in the  
> QAbstractItemView, but it
> seems to be non-existent.
>
> regards
>
> Lars
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest



More information about the Qt-interest-old mailing list