koilin
10th July 2012, 10:16
I want to get the geometry of the QMenu before it being visible. I tried get the geometry at the aboutToShow() signal, but it seems to be out of control, the topLeft point of the menu's rect is always different to the QCursor::pos(). Anyone know why? Or what is the right moment to get the geometry before it show?