Port kpMainWindow::pasteText from QDesktopWidget
It's gone in Qt 6.
Still works, values seem to be the same. Wonder if that can be null? I guess we probably want to limit it to the screen size and not the overall virtual geometry but that just keeps behavior as-is.
Edited by Kai Uwe Broulik