It was for this very reason Nokia bought Qt. They very much had a desktop class dev story going, and also some pretty solid mobile device cred. People seem to forget the Greenphone, which was sold as a development platform but you could actually buy it and it was a proper phone with the full dev stack, more than a year before the iPhone was shown publicly. Nokia absolutely had what was required to stay relevant. Without the hostile takeover, things might have turned out different.