At the cost of pointing the obvious: you need to tighten the locknuts against the cones (
how to service cup-and-cone hubs and adjust bearing preload).
For the QR, make sure you use a high-quality QR with the mechanism inside its "head" ("internal cam mechanism").
Relja