Thanks a lot for your help.
It works now. I just added
Qt Code:
  1. ang->show()
To copy to clipboard, switch view to plain text mode 
because the isVisible() used to return false