[Interest] QTableWidget cellChanged signal called while populating table

Mark Gaiser markg85 at gmail.com
Mon May 11 13:00:10 CEST 2015


On Mon, May 11, 2015 at 12:43 PM, Berkay Elbir <berkayelbir at gmail.com>
wrote:

> Hello All,
>
> I want to ask a question about QTableWidget. How can I prevent that
> calling QTableWidget cellChanged signal while populating table?
>
> Thanks in advance,
>
> Berkay
>

yourObject->blockSignals(true);
---
whatever you want to do
---
yourObject->blockSignals(false);

"yourObject" (which is a QTableWidget and just fine in this case) must
inherit QObject at some level to get the "blockSignals(...)" function [1].

[1] http://doc.qt.io/qt-5/qobject.html#blockSignals



>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150511/8bde4e7a/attachment.html>


More information about the Interest mailing list