I cannot find a way to activate a cursor inside a QTextEdit without clicking inside the actual widget. What I want to be able to do is, type something in side the QTextEdit window, click on a QPushButton and have the cursor stay active inside the QTextEdit without having to click in the window again.
Ideas?