<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>On Sun, Mar 12, 2017 at 4:03 AM, René J.V. Bertin <span dir="ltr"><<a href="mailto:rjvbertin@gmail.com" target="_blank">rjvbertin@gmail.com</a>></span> wrote:<br></div></div></div></div></div></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
The other day I had to add a context menu to a widget (QPushbutton) defined in a .ui file and went a bit further when I realised it could be nice to be able to open such a menu without using a right-click or menu button. After all, not all platforms have a (physical) right mouse button or a menu key; Macs come to mind but also mobile devices. </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
The usual way to open the context menu on such platforms is click/tap-and-hold - I think that was actually introduced in an early Mac OS X version.<br></blockquote><div><br></div><div><div>Macs however always have two-fingers secondary click;</div><div>their magic mouse have both (it's mouse-touchpad hybrid).</div><div><br></div><div>Worth noting that the tap-and-hold is used only in very few</div><div>places of the macOS shell, like the bottom launcher and </div><div>Launchpad, pretty much nothing else accepts tap-and-hold</div><div>for context menu, certainly not any of the regular apps.</div></div><div>So I wouldn't say that is "the usual way" on mac at all.</div><div><br></div><div>Just to provide some more insight for non-mac folks.</div><div><br></div><div>Cheers</div><div><div><span style="color:rgb(102,102,102)">--</span></div><div><span style="color:rgb(102,102,102)">Martin Klapetek</span></div></div></div></div></div>