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. How can I hide cursor or set it unblinking in QTextEdit?

How can I hide cursor or set it unblinking in QTextEdit?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 8.3k 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.
  • D Offline
    D Offline
    dlodyakov
    wrote on last edited by
    #1

    Does anyone know how to hide cursor or disable blinking in QTextEdit?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vsorokin
      wrote on last edited by
      #2

      I'm not sure and I don't check. but you can try
      @QTextEdit::setCursorWidth ( int width )@
      with 0 width value.

      --
      Vasiliy

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dlodyakov
        wrote on last edited by
        #3

        You right, it's working.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mlong
          wrote on last edited by
          #4

          For blink rate, you can try
          @ qApp->setCursorFlashTime(0); @

          Software Engineer
          My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

          1 Reply Last reply
          0

          • Login

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