PDA

View Full Version : Window stacking order



mcb
28th October 2009, 05:40
I'm interested in finding the second top-most Qt window underneath the cursor as I move another window about. I see API support for QMdiArea and QGraphicsItem but not for top-level windows. Any suggestions?

mcb
28th October 2009, 21:21
I am able to get the functionality I'm looking for by temporarily lowering the top-most top-level window (using QWidget::lower()) and then using QApplication::topLevelAt( QPoint pos) to find the next top-level window. However, this "solution" is plagued by unsightly flashing.

From googling about, I gather that I need to implement platform-specific code to determine the top-level window z-ordering. I had hoped to avoid that.