<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>I wanted to thank you for your reply. It does give me better understanding of what is going on. But I still disagree.</div>

<div> </div>

<div>> If you look into how <i>ComboBox</i> is styled in the code, you’ll notice that the implicit size of the combo box depends on the implicit size of the background, implicit size of the content item, and the padding/inset that’s set for the <i>ComboBox.</i> In order to achieve what you are describing, you can customize the <i>contentItem</i> property of the <i>ComboBox</i> to disable eliding.</div>

<div> </div>

<div>This is stuff that I never had to worry about before. If anything I could do combobox->setElided(false) except that was _never_ a thing. I don't know why it is now. I don't know why anyone decided that elliding should be the default. It actively removes information that is critical to making the correct selection. Only if an explicit width is set, would it ever be justfied in eliding.  By defualt, it is actively making the wrong decision. I only set the top and right anchor lines. </div>

<div> </div>

<div>
<div><a data-issue-key="QTBUG-78281" href="https://bugreports.qt.io/browse/QTBUG-78281" id="key-val" rel="284547">QTBUG-78281</a></div>
</div>

<div> </div>

<div> </div>

<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Sent:</b> Tuesday, September 10, 2019 at 3:06 PM<br/>
<b>From:</b> "Furkan Üzümcü" <furkanuzumcu@gmail.com><br/>
<b>To:</b> "Giuseppe D'Angelo via Interest" <interest@qt-project.org>, "Jason H" <jhihn@gmx.com><br/>
<b>Subject:</b> Re: [Interest] Why I still prefer widgets...</div>

<div name="quoted-content">
<div>
<div>If you look into how <i>ComboBox</i> is styled in the code, you’ll notice that the implicit size of the combo box depends on the implicit size of the background, implicit size of the content item, and the padding/inset that’s set for the <i>ComboBox.</i> In order to achieve what you are describing, you can customize the <i>contentItem</i> property of the <i>ComboBox</i> to disable eliding.

<div> </div>

<div>By default, ComboBox uses TextField as the content item and thus the behaviour you see. Also, although not 100% related, check out QtQuick.Layouts. Layout attach property provides some useful functionality for that as well.</div>
</div>
</div>

<div> 
<div>Regards,
<div>Furkan Üzümcü</div>
</div>
</div>

<div>On Sep 10, 2019, 14:54 -0400, Jason H , wrote:
<blockquote class="spark_quote" style="margin: 5.0px 5.0px;padding-left: 10.0px;border-left: thin solid rgb(26,188,156);">ComboBox {<br/>
anchors {<br/>
top: parent.top<br/>
right: parent.right<br/>
}<br/>
model: Object.keys(Data.imeis) // and IMEI is 15 characters long<br/>
}<br/>
<br/>
I feel like when I did this with widgets, the combobox, if set to preferred (default) would size itself to fit the content. But in QML I get elided text.<br/>
<br/>
So how to compute the proper width? Well I've got to dive into FontMetrics and it's just_so_much_more_work. I hope I'm wrong.<br/>
<br/>
What I would give for a sizePolicy!<br/>
<br/>
_______________________________________________<br/>
Interest mailing list<br/>
Interest@qt-project.org<br/>
https://lists.qt-project.org/listinfo/interest</blockquote>
</div>
</div>
</div>
</div>
</div></div></body></html>