<?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[Control the position of where the submenu is displayed.]]></title><description><![CDATA[<p dir="auto">I am using QMenu to create a pop up menu in a limited screen environment 160x100.</p>
<p dir="auto">I need to have the submenu displayed in the same screen location as the parent menu.<br />
Essentially, on top of the parent menu instead of to the right and starting at the<br />
menu item.</p>
<p dir="auto">So what would be the best way to control the placement of a submenu.</p>
<p dir="auto">I have tried manipulating the submenu from the aboutToShow event but was unsucessful with what I tried.  I have also tried setting the minimumSize and maximum size to the 160x100 and setting the size policy but was unsuccessful as well.</p>
]]></description><link>https://forum.qt.io/topic/8832/control-the-position-of-where-the-submenu-is-displayed</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 23:14:04 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/8832.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 22 Aug 2011 14:32:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Control the position of where the submenu is displayed. on Thu, 25 Aug 2011 18:05:24 GMT]]></title><description><![CDATA[<p dir="auto">I found a way.  May not be the best but it works.  Override the paintEvent and used move to get it where I needed it.</p>
]]></description><link>https://forum.qt.io/post/106870</link><guid isPermaLink="true">https://forum.qt.io/post/106870</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 25 Aug 2011 18:05:24 GMT</pubDate></item></channel></rss>