Unsolved hovering over child widgets, Qt::WA_NoMousePropagation not working
-
Hi
I agree - its a bit odd.
QLabel might have some special flag.
Did you try with Qwidgets ? -
I have tried it with QComboBox/QStackedWidget because thats actually where i need it.
-
@OZaric
Just tried with QWidgets and mainwindow and indeed the mouse
bleed through. -
Anyway Thank You for your time !
-
@OZaric
It seems that Qt::WA_NoMousePropagation have no effect
Im using Qt 5.10
What version are you testing with ? -
I am working with Qt 5.9.3. I have here a few (including static builds), tested on all without success.
-
Hi
Seems parent widget always get a hover when you enter its area even if a child
is covering the entry area
Not sure its a bug or by design. Lets see what others say.
-
Hi,
Can you share your test sample ?
-
-
Samuel Gaist, the qt legend :D
I am reading you already for years in this forum!Check it out, it seems like setting attr Qt::WA_NoMousePropagation has no effect at all.
-
It is used in QComboBox.
Did you already saw the QHoverEvent description especially the part about propagation ?
-
It is used in QComboBox.
Are you sure ? , because its not working for my QComboboxes neither!
Mouse is over the left history button in this picture.Did you already saw the QHoverEvent description especially the part about propagation ?
I did. This link is actually also in my original question.
-
Hi
The sample sets Qt::WA_NoMousePropagation on "CHILD"
in mainwindows ctor but it made no difference.The CHILD label seems to be aligned with Parents client rect and in theory
cursor should be able to enter the CHILD directly but i suspect the truth is
that entering a widget always enters the parent first regardless of the visual
representation. -
Sorry, I misread the link you used.
As for QComboBox, yes I am. See here.
-
Hmmm ok.