W=qV talks about how much work it takes to move a point charge, q, across a potential difference of V.
PE =1/2QV describes the PE of a capacitor with an overall charge Q and a potential difference of V.
These aren't universal equations. They work for specific situations. Also, the variable q and Q are different in this case. You have to know what the equation is describing, not just the equations themselves.