The whole point of this exercise is that the cell converts QV joules of energy in the process, as I said in my original reply and was asked by the original question, and the capacitor, when charged, only has 0.5QV joules of energy stored in it.
So where did the missing energy go?
Classic physics problem.