How to send "Ctrl + C" event to a Qt widget? -
i want "ctrl+c" event qt widget, qlineedit when person presses copy icon of application. how should ? make qlineedit when user presses "ctrl + c" (i.e. copy) ?
just clarification : widget may not qlineedit. in 1 of cases, qwebview. now, displays web page, in there may text fields of own. want paste on text fields. possible if text fields embedded inside web page feel user has presses "ctrl+v".
qcoreapplication::postevent 2 qkeyevents (qevent::keypress , qevent::keyrelease)
Comments
Post a Comment