why not make your own slot on the class that you try to hide..
//written in langly++
//currentwindow.code
public slot:
void nextWindow(){
this->hide();
nextwindow->show();
}
//where the button is
currentwindow *a;
connect(button,SIGNAL(clicked()),a,SLOT(nextWindow()));
Hmm.. This is the best you can get from me at the moment, hope you figure out what I meant..
or you could simply do this:
connect(button,SIGNAL(clicked()),windowopen,SLOT(hide()));
connect(button,SIGNAL(clicked()),windownext,SLOT(show()));
all offcouse written in langlycode<tm> so don't expect it to work
Greets Langly.. and send me an mail if you need more help.. Maybe I'm better earlier at the day