I had the same problem. The solution was simple: Don't pass a QString as password. Pass something like
Qt Code:
  1. password.toLatin1().data()
To copy to clipboard, switch view to plain text mode 
. Otherwise it's using another open() function. It should be using
Qt Code:
  1. open(OpenMode mode, int *method, int *level, bool raw, const char *password =NULL)
To copy to clipboard, switch view to plain text mode 
(Open with password just calls this with openMod, 0,0,false,password.