> with desktop class application development frameworks
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.
Nokia had a problem long before that. They were trying to play on too many playgrounds. They had S60 and Symbian as their workhorse OSs and then were dabbling in various custom Linux stacks (I had an N800 back than, GTK+ based - could skin it like a tricorder - fun times). Then they acquired Qt (Trolltech) and instead of building a UI on the Widgets tech stack they wanted to re-invent the wheel with QML - which is how the Qt framework became this weird two GUI frameworks in one that don't really mesh to this day.
Granted, Google was also just throwing stuff at the wall and seeing what stuck, but at least they are a tech company with multiple revenue streams - while Nokia wasn't either of those - so without a laser focus they were doomed from the get go. And they did not have it.