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? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -