Important: Please read the Qt Code of Conduct -

Child widget of a popup dialog does not receive QEvent::MouseButtonPress on touch screen.

  • I added both pop-up dialog and the child widget(QPushButton) to event filter. I can see the pop-up dialog receives QEvent::MouseButtonPress. But the child push button can not. What is wrong?

  • Lifetime Qt Champion


    Can you show how you build that dialog and child widget ?
    What version of Qt are you using ?
    What OS are you running ?
    What kind of touch screen ?

  • It turns out that some webkit widgets are used in the layout. These widgets can not be updated properly and they block the updates of other widgets as well. They are not supported anymore from Qt 5.5. It is a lot of better now after they are replaced by webengine widgets. Currently, Qt 5.9 is used in my app. Simply post the reason here in case someone else has the same issue.

Log in to reply