It is usually 6 years if you do a law degree (LLB) first. It would be LLB, SQE post grad course and exams - so that is together a total of 4 years studying. Then 2 years as a trainee solicitor/QWE before you qualify but you are working and paid in those last 2 years.
If you do not do an LLB first but a different degree that adds to the time as most bigger firms prefer you do a la conversion course/year before the SQE so the 6 years to qualification becomes 7.