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
Post a Comment