Qt Code:
  1. int val = str.toInt(0, 16);
To copy to clipboard, switch view to plain text mode