[Interest] [External] Re: How to prevent scroll changing QComboBox index when mouse hovers?

Edward Sutton edward.sutton at subsite.com
Thu Aug 20 15:15:16 CEST 2015


Thanks Reinhardt.  Installing an eventFilter seems to be the required solution to fix the incorrect QComboBox behavior.

On Aug 20, 2015, at 8:03 AM, Reinhardt Behm <rbehm at hushmail.com<mailto:rbehm at hushmail.com>> wrote:

*External Message - use caution*


On Thursday 20 August 2015 12:55:12 Edward Sutton wrote:
If user hovers mouse cursor (with out clicking) over a QComboBox and scrolls
the mouse wheel the combo index scrolls.  This is unexpected behavior for
both OS X and Windows users.  The result is to cause users to make
unintentional changes in my app.

Is there an easy way to prevent this unexpecetd behavior?

Or does it require replacing al QComboBox items with a derived version that
filters events?


-Ed

Install an eventFilter on the QComboBox?

I was hoping that focusPolicy would provide an easy solution.  Neither StrongFocus nor NoFocus prevents this behavior.

This behavior is considered a bug in the QComboBox behavior by *both* OS X and Windows users.

-Ed



This email and any files transmitted with it from The Charles Machine Works, Inc. are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender. Our company accepts no liability for the contents of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150820/26146da3/attachment.html>


More information about the Interest mailing list