[Qt-interest] QComboBox Popup Access

Sean Hayes sean.t.hayes at Vanderbilt.Edu
Fri Oct 15 00:01:29 CEST 2010


On Thu, Oct 14, 2010 at 12:53 AM, Andre Somers <andre at familiesomers.nl> wrote:
>  Op 13-10-2010 14:53, Sean Hayes schreef:
>>
>>> You should be able to install an eventfilter on either of them. Is that
>>> what you were after?
>>
>> That is not exactly what I am after. The view() gives me access to
>> events that occur while I am interacting with the popup. However, when
>> the popup is open, any events that are generated from interacting with
>> any other widget are diverted to the QComboBoxPrivateContainer and
>> never arrive anywhere else. Is my understanding correct? I really need
>> to know if a mouse or touch event occurs in other parts of the
>> application while the QComboBox popup is visible.
>>
> And if you enable mouse tracking, do you get these events then?
Thanks for the suggestion. I tried the following within the QComboBox:
view()->installEventFilter(this);
However, I still only receive events from when the mouse is over the
popup. All the interactions outside the popup still appear to be going
to the QComboBoxPrivateContainer but I do not have access to them.
This limitation is odd for Qt.

I may implement my own popup from a QListWidget. Then I will have
direct access to it. Do you see any other alternative?

Sean
>
> André
>
>




More information about the Qt-interest-old mailing list