Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
@sonichy Did you already try to debug? What is MdiChild? What is textCursor?
@sonichy As @jsulm says. Possibly your textCursor() is returning nullptr?
textCursor()
nullptr
@JonB QMdiArea point to wrong object Change
ui->mdiArea->window()
to
ui->mdiArea->currentSubWindow()->widget()