[Qt-interest] Blocked events on title bar right click.

Tony Rietwyk tony.rietwyk at rightsoft.com.au
Wed Dec 23 13:22:17 CET 2009


Hi Jay, 
 
I found in 4.5 that timer events do not get sent while the user is resizing
the window, or moving it about.  I assumed Windows grabs the mouse as soon
as it is clicked in the non-client area, and creates its own event loop
until the mouse is released - but I didn't check the code or ask about it.
At the time, I simply abandoned the use of Qt timers, since they all seemed
to be based on receiving event messages in Windows.  I used platform
specific interfaces instead.  
 
Why do you need to get the events from outside the *client* area of your
windows?  
 
Tony.
 

-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Jay Caldwell
Sent: Wednesday, 23 December 2009 15:11
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] Blocked events on title bar right click.



Following up:

 

I can now make the ContextMenu not be shown by setting
Qt::CustomizeWindowHint.  Now events flow if the user lets go of the right
mouse button on the NonClientArea (i.e. Tilte Bar) but are still blocked if
the user holds down the right mouse button.

 

Thanks,

Jay

 


  _____  


From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Jay Caldwell
Sent: Wednesday, 23 December 2009 10:52 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] Blocked events on title bar right click.

 

Hi All,

 

We are having an issue where events are being blocked when a dialog box
title bar is right clicked.  Right clicking the title bar pops up the "Move,
Size, Minimise, Maximise, Close" menu box.

 

We have tried to use the event filter to catch the event and force it to
process all events via QCoreApplication::processEvents
(QEventLoop::AllEvents ) to no avail.  So we printed to std out all the
event types to see what the last event is whilst right clicking on the title
bar.  There was no event at all once the right click was carried out.  We
were expecting a right click event at least.

 

So as a work around, is there a way to stop this menu from being popped up?
Or is there another solution?

 

 

Cheers,

Jay.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091223/6b962463/attachment.html 


More information about the Qt-interest-old mailing list