Re: [Interest] Struggling with moveEvent()

2018-10-04 Thread Adam Light
On Wed, Oct 3, 2018 at 6:27 AM Murphy, Sean wrote: > > This looks promising - I had never stumbled across QWidgetAction before. > Although now > that you point it out, I've discovered the section of the QMenu > documentation that I > previously skimmed over that mentions it! > > Is the code in yo

Re: [Interest] Struggling with moveEvent()

2018-10-03 Thread Murphy, Sean
> > Regarding your setMenu question, I did consider it, but I didn't think it > > would > > work for my needs - although I could be wrong about that. Here's my > > requirements: > > 1. I need a widget that pops up when the user clicks on a button So this > > requirement > >  *could* be handled b

Re: [Interest] Struggling with moveEvent()

2018-10-02 Thread Murphy, Sean
> Widgets are normally positioned relative to their owner - the exception > is popup menus, which are screen absolute.  I would expect a popup menu > to automatically close when the title bar is clicked.  How have you > implemented your captionPopupMenu?  Does it capture the mouse when it > is > vi

Re: [Interest] Struggling with moveEvent()

2018-10-02 Thread Murphy, Sean
> > So I'm not sure what I need to trigger off from to detect when I need to > reposition the menu. I feel like I'm missing something really obvious, but not > seeing it on a Monday apparently. > > I don't think you're missing anything -- if a widget doesn't move, but > its parent does, only the p

Re: [Interest] Struggling with moveEvent()

2018-10-01 Thread Tony Rietwyk
Hi Sean, Widgets are normally positioned relative to their owner - the exception is popup menus, which are screen absolute.  I would expect a popup menu to automatically close when the title bar is clicked.  How have you implemented your captionPopupMenu?  Does it capture the mouse when it is

Re: [Interest] Struggling with moveEvent()

2018-10-01 Thread Giuseppe D'Angelo via Interest
Il 01/10/2018 20:11, Murphy, Sean ha scritto: So I'm not sure what I need to trigger off from to detect when I need to reposition the menu. I feel like I'm missing something really obvious, but not seeing it on a Monday apparently. I don't think you're missing anything -- if a widget doesn't

[Interest] Struggling with moveEvent()

2018-10-01 Thread Murphy, Sean
My basic question is how do child widgets get moved or repainted when some ancestor of theirs moves? Here's the more detailed issue, first the widget hierarchy: QMainWindow CustomerHeaderTable (inherits from QTableWidget) CustomTableHeader (inherits from QHeaderView, allows you to put