[Qt-interest] finding on what widget i am clicking...

Francesco Lamonica alienpenguin at gmail.com
Fri Jun 5 12:33:05 CEST 2009


Hi all, i've got a weird problem...
I am inspecting some code with a window full of widgets (not created
with designer) all placed manually with move(), setGeometry() etc.
i have a label (placed at 10,0) on which i click and the mouse press
event is recognized only if y()>30.
If i move the label to (80,0) the click is recognized over all the
label so i thought there might be some other widget over it and tried
raise() as the last statement of the ctor but with no luck.

What might it be? if it is indeed a widget (created or moved somewhere
else in the code flow) how can i find which one it is?
thanks a lot.



More information about the Qt-interest-old mailing list