PDA

View Full Version : QMdiArea how to connect the subwindow changed



SamSong
20th May 2009, 03:48
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.

lni
20th May 2009, 04:17
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...

RThaden
20th May 2009, 10:04
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

SamSong
21st May 2009, 02:15
Thanks , I will try