<?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[Changing editor size in QStyledItemDelegate]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I have a QStandardItemModel with QStyledItemDelegate. Because the records include pictures the rows are quite high and the editors (QLineEdit, QTextEdit, QComboBox) don't look too good. Is it possible to change the size of these editors  somehow? Especially their height.<br />
Thank you.</p>
]]></description><link>https://forum.qt.io/topic/73236/changing-editor-size-in-qstyleditemdelegate</link><generator>RSS for Node</generator><lastBuildDate>Sat, 02 May 2026 20:38:10 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/73236.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 11 Nov 2016 04:55:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Changing editor size in QStyledItemDelegate on Fri, 11 Nov 2016 13:10:26 GMT]]></title><description><![CDATA[<p dir="auto">I think reimplementing sizeHint in the delegate should be enough</p>
]]></description><link>https://forum.qt.io/post/359067</link><guid isPermaLink="true">https://forum.qt.io/post/359067</guid><dc:creator><![CDATA[VRonin]]></dc:creator><pubDate>Fri, 11 Nov 2016 13:10:26 GMT</pubDate></item><item><title><![CDATA[Reply to Changing editor size in QStyledItemDelegate on Fri, 11 Nov 2016 07:38:43 GMT]]></title><description><![CDATA[<p dir="auto">Hi<br />
Can you try in<br />
In<br />
::createEditor(QWidget *parent,<br />
const QStyleOptionViewItem &amp;option,<br />
const QModelIndex &amp;index) const<br />
....<br />
StarEditor *editor = new StarEditor(parent);  // Create editor<br />
editor-&gt;resize(   option.rect.width(),  option.rect.height() )<br />
....</p>
]]></description><link>https://forum.qt.io/post/359007</link><guid isPermaLink="true">https://forum.qt.io/post/359007</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Fri, 11 Nov 2016 07:38:43 GMT</pubDate></item></channel></rss>