<table><tr><td style="">rkflx added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D7010" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Looking at the Qt docs, we see:</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>Call QWidget::updateGeometry() whenever the size hint, minimum size hint or size policy changes. This will cause a layout recalculation.</p></blockquote>
<p>To decide whether this is also meaningful for a squeezable label, a testcase would be good, though. Might even be a totally different issue.</p>
<p>In fact, I tried adding a test for this when implementing the autotests in <a href="https://phabricator.kde.org/D7163" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">D7163</a> last week already, but got stuck:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">What is the size policy of the containing widget?</li>
<li class="remarkup-list-item">How to enter the initial squeezed state?</li>
<li class="remarkup-list-item">If the text is already squeezed, is the label actually supposed to change geometry if the text changes?</li>
<li class="remarkup-list-item">What is exactly misbehaving, i.e. what is the expected and what is the observed behaviour?</li>
<li class="remarkup-list-item">How to test updateGeometry() (vs. adjustSize(), which seems to call sizeHint() directly)?</li>
</ul>
<p>Not sure if this helps, but hopefully we'll figure it out eventually.</p>
<p>TL;DR: Could not reproduce, but fix might still be correct.</p></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7010" rel="noreferrer">https://phabricator.kde.org/D7010</a></div></div><br /><div><strong>To: </strong>brauch, cfeck, rkflx<br /><strong>Cc: </strong>dhaumann, aacid, Frameworks<br /></div>