There is no Qt API, you will write down all the valid combinations yourself.