why not make your own slot on the class that you try to hide..
//written in langly++
//where the button is
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:
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