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
> > 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
> 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
> > 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
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
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
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