c++ - Activate cursor in QTextEdit -


i cannot find way activate cursor inside qtextedit without clicking inside actual widget. want able is, type in side qtextedit window, click on qpushbutton , have cursor stay active inside qtextedit without having click in window again.

ideas?

when user clicks button, should give focus text edit using setfocus():

mytextedit->setfocus(); 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -