<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[SOLVED]QStandardItemModel::itemChanged(QStandardItem*) signal and QAbstractScrollArea::paintEvent ( QPaintEvent * event ) function]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I have a problem !<br />
I'm working on a QTableView, so I connected<br />
@void QStandardItemModel::itemChanged ( QStandardItem * item ) [signal]@</p>
<p dir="auto">to my own slot. But I set items in the paintEvent() method of my view, so the itemChanged() signal is emitted. That's the problem !</p>
<p dir="auto">So i would like to disconnect temporarly the signal and reconnect it later after the paintEvent processing.<br />
I know how to disconnect, I use a disconnect(model(), itemChanged(QStandardItem*), 0, 0).</p>
<p dir="auto">But how can I reconnect all slot to the signal after the treatment?</p>
]]></description><link>https://forum.qt.io/topic/16329/solved-qstandarditemmodel-itemchanged-qstandarditem-signal-and-qabstractscrollarea-paintevent-qpaintevent-event-function</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 19:49:44 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/16329.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 30 Apr 2012 15:54:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED]QStandardItemModel::itemChanged(QStandardItem*) signal and QAbstractScrollArea::paintEvent ( QPaintEvent * event ) function on Mon, 30 Apr 2012 16:08:14 GMT]]></title><description><![CDATA[<p dir="auto">Great!  Be sure and edit the thread title to add [Solved].  Thanks!</p>
]]></description><link>https://forum.qt.io/post/137563</link><guid isPermaLink="true">https://forum.qt.io/post/137563</guid><dc:creator><![CDATA[mlong]]></dc:creator><pubDate>Mon, 30 Apr 2012 16:08:14 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED]QStandardItemModel::itemChanged(QStandardItem*) signal and QAbstractScrollArea::paintEvent ( QPaintEvent * event ) function on Mon, 30 Apr 2012 16:05:20 GMT]]></title><description><![CDATA[<p dir="auto">Thanks you very much, it's exactly what I need !</p>
]]></description><link>https://forum.qt.io/post/137562</link><guid isPermaLink="true">https://forum.qt.io/post/137562</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 30 Apr 2012 16:05:20 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED]QStandardItemModel::itemChanged(QStandardItem*) signal and QAbstractScrollArea::paintEvent ( QPaintEvent * event ) function on Mon, 30 Apr 2012 15:59:33 GMT]]></title><description><![CDATA[<p dir="auto">You could look at "QObject::blockSignals.":/doc/qt-4.8/qobject.html#blockSignals</p>
]]></description><link>https://forum.qt.io/post/137560</link><guid isPermaLink="true">https://forum.qt.io/post/137560</guid><dc:creator><![CDATA[mlong]]></dc:creator><pubDate>Mon, 30 Apr 2012 15:59:33 GMT</pubDate></item></channel></rss>