Basically, merging Qt's qwindowstabletsupport.h into Krita.
I have only tested this with a modified version of Qt. I comment out
the following line in QWindowsContext::QWindowsContext():
// d->m_tabletSupport.reset(QWindowsTabletSupport::create());
this is found at line 347 of qwindowcontext.cpp in my local copy.
The reasoning behind that change is as follows. Qt creates a hidden
dummy window to receive tablet events, and I copy that methodology.
I do not want to worry about conflicting tablet contexts, so I
disabled Qt's extra window, leaving only our own.
I've left much of the older code in place, in particular the part which would be necessary to restore the Surface Pro 3 workaround.