I wonder what exactly triggers QState::Style_Raised. I raise my related window only upon a signal. And in my window's class I do the following;

myWindow::updateView()

{
...
if( QStyle::State_Raised)
{
cout<<"RAISED"<<endl;
}
...
}

the problem is no matter what takes place, my window always seems Raised!

is there any idea for passing me?