Various Qt6 build fixes
This isn't complete yet, in particular the following things still need proper solutions:
- copying of QEvents
- QTextStream::setCodec usage
Edited by Volker Krause
This isn't complete yet, in particular the following things still need proper solutions: