Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTextEdit::textCursor() crash
Forum Updated to NodeBB v4.3 + New Features

QTextEdit::textCursor() crash

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 424 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • sonichyS Offline
    sonichyS Offline
    sonichy
    wrote on last edited by
    #1

    alt text

    https://github.com/sonichy

    jsulmJ JonBJ 2 Replies Last reply
    0
    • sonichyS sonichy

      alt text

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @sonichy Did you already try to debug?
      What is MdiChild?
      What is textCursor?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • sonichyS sonichy

        alt text

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @sonichy
        As @jsulm says. Possibly your textCursor() is returning nullptr?

        sonichyS 1 Reply Last reply
        0
        • JonBJ JonB

          @sonichy
          As @jsulm says. Possibly your textCursor() is returning nullptr?

          sonichyS Offline
          sonichyS Offline
          sonichy
          wrote on last edited by
          #4

          @JonB QMdiArea point to wrong object
          Change

          ui->mdiArea->window()
          

          to

          ui->mdiArea->currentSubWindow()->widget()
          

          https://github.com/sonichy

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved