Results 1 to 4 of 4

Thread: display order of subwindows in mdi area

  1. #1
    Join Date
    Aug 2009
    Posts
    81
    Platforms
    MacOS X Windows

    Default display order of subwindows in mdi area

    on mac if you launch the example mdi provided by qt and open on top of each other 3 subwindows, if you close the one on top it is always the first one created that comes back on top i tried to change the activation order without success.

    my own app has the same behavior and i cannot find a way to solve that...

    all help very welcome.


    thanks

  2. #2
    Join Date
    Apr 2009
    Posts
    36
    Thanks
    1
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: display order of subwindows in mdi area

    Take a look at the QMdiArea documentation for window order: http://doc.qt.nokia.com/4.6/qmdiarea...ndowOrder-enum.

    The default is the creation order, and that may be what you are seeing. To change it, call setActivationOrder.

  3. #3
    Join Date
    Aug 2009
    Posts
    81
    Platforms
    MacOS X Windows

    Default Re: display order of subwindows in mdi area

    as i mentioned i tried to change the activation order, but that does not work and also the window order changes but i do not get any subwindowactivated signal which is strange

  4. #4
    Join Date
    Apr 2009
    Posts
    36
    Thanks
    1
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: display order of subwindows in mdi area

    Quote Originally Posted by eric_vi View Post
    as i mentioned i tried to change the activation order, but that does not work and also the window order changes but i do not get any subwindowactivated signal which is strange
    It might be more helpful if you can describe exactly what didn't work and what you have done already (maybe providing source code would help people to see your problems more clearly).

    Based on what you have said, I can only assume that the subwindowactivated signal is not firing because you are not activating a subwindow, i.e. it's not getting keyboard focus or setFocus is not being called.

    Also, calling setActivationOrder will not immediately change the order of the windows until a new call to subWindowList, cascadeSubWindows, or tileSubWindows is made.

    The documentation has all of this information, so it might be worthwhile to read it again if you're having trouble with these concepts. If you're having trouble with something else, then being a little more clear can help us solve your problem better.

Similar Threads

  1. display graphics items on area
    By quantum.17 in forum Qt Programming
    Replies: 0
    Last Post: 5th May 2010, 11:19
  2. Tab order ignored in QGroupBox
    By adskol in forum Newbie
    Replies: 2
    Last Post: 5th April 2010, 05:42
  3. QMainWindow...button in subwindows
    By Peppy in forum Qt Programming
    Replies: 1
    Last Post: 15th October 2009, 15:52
  4. Update menu items on switching MDI subwindows
    By John_P in forum Qt Programming
    Replies: 1
    Last Post: 15th March 2008, 23:48
  5. about tab order
    By hesummar in forum Qt Programming
    Replies: 7
    Last Post: 16th November 2006, 05:45

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.