<?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[heightForWidth in designer?]]></title><description><![CDATA[<p dir="auto">Hi,<br />
in my UI I have one widget which should always keep it's aspect of 1.78:1. If I understand the procedure korrectly than I have to create a subclass, add the hasHeightforWidth() method and the heightForWidth() method itself. My question is: Is there any way to do this in designer? Or do I really have to do it in my c++ code?</p>
]]></description><link>https://forum.qt.io/topic/83842/heightforwidth-in-designer</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Nov 2026 00:48:31 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/83842.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 Oct 2017 10:52:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to heightForWidth in designer? on Thu, 05 Oct 2017 07:13:27 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, this helps a lot.</p>
]]></description><link>https://forum.qt.io/post/418897</link><guid isPermaLink="true">https://forum.qt.io/post/418897</guid><dc:creator><![CDATA[haggi]]></dc:creator><pubDate>Thu, 05 Oct 2017 07:13:27 GMT</pubDate></item><item><title><![CDATA[Reply to heightForWidth in designer? on Tue, 03 Oct 2017 21:36:19 GMT]]></title><description><![CDATA[<p dir="auto">Hi<br />
Just a note.<br />
Since you use the Designer. You can use the promotion feature to<br />
still use visual design and have heightForWidth()<br />
<a href="http://doc.qt.io/qt-5/designer-using-custom-widgets.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-5/designer-using-custom-widgets.html</a></p>
]]></description><link>https://forum.qt.io/post/418656</link><guid isPermaLink="true">https://forum.qt.io/post/418656</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Tue, 03 Oct 2017 21:36:19 GMT</pubDate></item><item><title><![CDATA[Reply to heightForWidth in designer? on Tue, 03 Oct 2017 21:02:21 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">AFAIK, no, you have to re-implement that method yourself.</p>
]]></description><link>https://forum.qt.io/post/418641</link><guid isPermaLink="true">https://forum.qt.io/post/418641</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 03 Oct 2017 21:02:21 GMT</pubDate></item></channel></rss>