[Qt-interest] Submitting changes in a QTableView

Malyushytsky, Alex alex at wai.com
Thu Jul 9 23:47:44 CEST 2009


>> Both slots are protected

I don't see why you would not subclass.
But the key is that these are slots and not just an ordinary functions.
You can connect them to any signal.
The fact that they are protected is irrelevant when we are talking about signal/slot implementation.
You still can connect any signal to any slot, it does not matter if it is protected, private or public.

Regards,
   Alex



-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Lars Amsel
Sent: Wednesday, July 08, 2009 10:47 PM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] Submitting changes in a QTableView

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


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

"Please consider our environment before printing this email."




More information about the Qt-interest-old mailing list