Results 1 to 4 of 4

Thread: QMdiArea how to connect the subwindow changed

  1. #1
    Join Date
    Aug 2008
    Posts
    11
    Thanks
    1

    Smile QMdiArea how to connect the subwindow changed

    Hi trolls,

    I use QMdiArea in my application , but I want to do something when one subwindow switch to another ,but i didn't find the signal in QMdiArea, the only signal is subwindowActivated(QMdiSubWindow*) ,but it does not seem as I want.
    any help, thans very much.

  2. #2
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QMdiArea how to connect the subwindow changed

    Quote Originally Posted by SamSong View Post
    Hi trolls,

    I use QMdiArea in my application , but I want to do something when one subwindow switch to another ,but i didn't find the signal in QMdiArea, the only signal is subwindowActivated(QMdiSubWindow*) ,but it does not seem as I want.
    any help, thans very much.
    yes, it is what you need....it also tells you which subwindow is activated in the signal...

  3. #3
    Join Date
    Jan 2008
    Posts
    56
    Thanks
    7
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QMdiArea how to connect the subwindow changed

    Have a look at the MDI example here
    http://doc.trolltech.com/4.5/mainwindows-mdi.html

    It does exactly what you need.

    Best regards,

    Rainer

  4. The following user says thank you to RThaden for this useful post:

    SamSong (21st May 2009)

  5. #4
    Join Date
    Aug 2008
    Posts
    11
    Thanks
    1

    Default Re: QMdiArea how to connect the subwindow changed

    Thanks , I will try

Similar Threads

  1. Application only 'animates' once
    By arkain in forum Qt Programming
    Replies: 7
    Last Post: 29th April 2009, 08:09
  2. Weird behaviour with QMdiSubWindows in a QMdiArea?
    By qt_noob in forum Qt Programming
    Replies: 2
    Last Post: 4th April 2009, 16:48
  3. QMdiArea unwanted actvation
    By fullmetalcoder in forum Qt Programming
    Replies: 7
    Last Post: 12th November 2007, 07:09

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.