QRS complex width is dependent on the slope of phase 0 upstroke - aka Sodium channels.
Increased extracellular potassium causes membrane depolarisation. This opens some voltage gated sodium channels but also inactivates some at the same time. The reduced number of sodium channels available result in a delayed upstroke, and therefore a wide QRS complex.