QKeyEvent event(QEvent::KeyPress, Qt::Key_Space, Qt::NoModifier);QApplication::sendEvent(<widet>, &event);
case 74: QKeyEvent event(QEvent::KeyPress, Qt::Key_Home, Qt::NoModifier); QApplication::sendEvent(textEdit, &event); break; case 121: textEdit->insertPlainText("Again"); break;
1>.\text.cpp(1068) : error C2360: initialization of 'event' is skipped by 'case' label1> .\text.cpp(816) : see declaration of 'event'
case 74: {QKeyEvent event(QEvent::KeyPress, Qt::Key_Home, Qt::NoModifier); QApplication::sendEvent(textEdit, &event); } break; case 121: textEdit->insertPlainText("Again"); break;
textEdit->insertHtml("<br>");
{ QKeyEvent event(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier); QApplication::sendEvent(textEdit, &event); break; }