<?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[Handle to factory edit widget]]></title><description><![CDATA[<p dir="auto">I want insert my own editor widget into a QTableView.  I am trying to follow the lone example Qt offers which does it for a Color ComboBox.</p>
<p dir="auto">My issue is that I want a handle to the edit widget.  IN the code below I want to get a pointer to ColorListEditor.  Say for instance I want to change  the colours dynamically and so want a pointer to the widget so I can call a method like 'resetColors(QStrList colors);</p>
<p dir="auto">Does anyone know how I can get such a handle to the created widget.</p>
<p dir="auto">Thanks</p>
<p dir="auto">@QItemEditorFactory *factory = new QItemEditorFactory;</p>
<pre><code>QItemEditorCreatorBase *colorListCreator =
    new QStandardItemEditorCreator&lt;ColorListEditor&gt;();

// How do I get a handle to the newly created ColorListEditor ?

factory-&gt;registerEditor(QVariant::Color, colorListCreator);

QItemEditorFactory::setDefaultFactory(factory);@
</code></pre>
]]></description><link>https://forum.qt.io/topic/43204/handle-to-factory-edit-widget</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 02:37:25 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/43204.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 Jul 2014 20:26:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Handle to factory edit widget on Tue, 01 Jul 2014 23:55:50 GMT]]></title><description><![CDATA[<p dir="auto">Thanks</p>
<p dir="auto">I think I will just create a separate edit area below the table.</p>
]]></description><link>https://forum.qt.io/post/234255</link><guid isPermaLink="true">https://forum.qt.io/post/234255</guid><dc:creator><![CDATA[DBoosalis]]></dc:creator><pubDate>Tue, 01 Jul 2014 23:55:50 GMT</pubDate></item><item><title><![CDATA[Reply to Handle to factory edit widget on Tue, 01 Jul 2014 20:45:14 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">From quick look to the classes you would have to keep a pointer to your editor creator, update the color list there and apply it each time you create a new editor or you could create a QStyleItemDelegate where you set the list in createEditor.</p>
<p dir="auto">Hope it helps</p>
]]></description><link>https://forum.qt.io/post/234215</link><guid isPermaLink="true">https://forum.qt.io/post/234215</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 01 Jul 2014 20:45:14 GMT</pubDate></item></channel></rss>