Qt came from Trolltech, KDE was originally just using it. KDE developers being major or majority contributors to Qt has been a more recent and gradual phenomenon. I haven't followed closely, but I imagine it also got a big boost with the governance changes in the last year or two.