Qual can be translated always to "which", or "which one".
Que has many functions. One of them is "which" as well.
When it's a stand alone pronoun, it means "what".
It can mean "that" when being a conjunction uniting sentences.
And probably has other meanings I don't remember now.