This is probably Python specific. In C++, you can do:
Qt Code:
  1. MyType variable = variant.value<MyType>();
  2.  
  3. // or use one of the built in to* functions.
  4. QString str = variant.toString();
To copy to clipboard, switch view to plain text mode