PyQt4: self.hide() only hide the content
===

I tried to to subclass QMainWindows and make a call to self.hide() when the minimize event was caught. When I pressed the minimize button, it is minimized to taskbar, and when I pressed it at the taskbar so that it appear again on the screen, I found that it is not invisible. Only the content of the QMainWindows is hide and the frame is still there. 

Is it what self.hide() supposed to behave?

I want to make it minimize to system tray, but many of the answers I found from this [question][1] didn't work.

![enter image description here][2]


  [1]: http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CFYQFjAA&url=http://stackoverflow.com/questions/758256/pyqt4-minimize-to-tray&ei=wrwQUPigNYmOiAfMjYDABQ&usg=AFQjCNHuufcpEWKyChvglgZ4Nf_d3gr-ew
  [2]: http://i.stack.imgur.com/CnXMp.png