Results 1 to 2 of 2

Thread: Window stacking order

  1. #1
    Join Date
    Jun 2009
    Posts
    8
    Thanks
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Window stacking order

    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?

  2. #2
    Join Date
    Jun 2009
    Posts
    8
    Thanks
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Window stacking order

    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.

Similar Threads

  1. How to set Qt window transparent?
    By montylee in forum Qt Programming
    Replies: 17
    Last Post: 24th December 2013, 20:11
  2. Replies: 2
    Last Post: 9th August 2009, 22:08
  3. Set a window as child at runtime
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 26th November 2007, 09:30
  4. Change shape of window / animate window
    By sabeesh in forum Qt Programming
    Replies: 3
    Last Post: 31st October 2007, 08:16
  5. window stacking order
    By nupul in forum Newbie
    Replies: 4
    Last Post: 10th April 2006, 10:16

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.