Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Unable to move cursor position in QPlainTextEdit

Unable to move cursor position in QPlainTextEdit

Scheduled Pinned Locked Moved Solved Qt for Python
3 Posts 2 Posters 766 Views 2 Watching
  • 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.
  • SayanS Offline
    SayanS Offline
    Sayan
    wrote on last edited by
    #1

    This code is not working for me. Any help will be appreciated. Thank you in advance.

    cursor = self.plainTextEdit.textCursor()
    cursor.movePosition(QTextCursor.MoveOperation.Right, QTextCursor.MoveMode.MoveAnchor, 1)

    M 1 Reply Last reply
    0
    • SayanS Sayan

      This code is not working for me. Any help will be appreciated. Thank you in advance.

      cursor = self.plainTextEdit.textCursor()
      cursor.movePosition(QTextCursor.MoveOperation.Right, QTextCursor.MoveMode.MoveAnchor, 1)

      M Offline
      M Offline
      mpergand
      wrote on last edited by
      #2

      @Sayan
      add :
      self.plainTextEdit.setTextCursor(cursor)

      SayanS 1 Reply Last reply
      2
      • M mpergand

        @Sayan
        add :
        self.plainTextEdit.setTextCursor(cursor)

        SayanS Offline
        SayanS Offline
        Sayan
        wrote on last edited by
        #3

        @mpergand it works. Thank you!!

        1 Reply Last reply
        0
        • SayanS Sayan has marked this topic as solved on

        • Login

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