I hope to check the allocated memory for one pointer with QT, but which function can we use?

like this:

Qt Code:
  1. ClassA *a = new ClassA();
  2. int size = sizeof(a)
To copy to clipboard, switch view to plain text mode