M
M
mrZurg2015-05-31 15:16:10
Qt
mrZurg, 2015-05-31 15:16:10

Qt: How to make parent element not intercept child events?

Generally there are 2 elements:
1 - parent widget
2 - child, for example QLabel.
d03de2a75c884195aedee154ece40947.png
When you click on 2, widget 1 below it also fires.
How to make only 2 widgets work?
(like something with event filters needs to be done)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xibir, 2015-05-31
@xibir

doc.qt.io/qt-5/qobject.html#installEventFilter
doc.qt.io/qt-5/qobject.html#eventFilter
there and there are examples

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question