Hi all,

I've a QLabel wherein, I've to trigger an action according to the mouse presses inside that label rectangle. For this I've implemented a mouePressEvent function in which, I'm checking for the mouse Press event's pos(), to check out whether it falls in the first half or the second half of the label rectangle,(I've divided the total rect of label widget into 2 halfs) and on the results of which I'm triggering the right action accordingly.
Now the programs works fine in a way only thing is, it requires double click to actually trigger the particular action which I've set in the slot. I'm wondering why is it requiring double clicks and not working with a single click on it??
The parent widget is the QMainWindow and there are couple of other widgets in the QMainWindow widget along with this QLabel widget.
is there any problem of mouse focus to the QLabel widget? or am I missing something very basic over here?

plz help.

regards.