The film itself didn't influence Matador, because it's completely different, but the general concept of desire in Querelle and its visual abstraction might have influenced me.
On Matador · Almodóvar on Almodóvar (collected interviews by Frédéric Strauss), p. 48