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. Drawing underline cursor in derived QLineEdit?

Drawing underline cursor in derived QLineEdit?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.8k 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.
  • A Offline
    A Offline
    Agossi
    wrote on last edited by
    #1

    Hi all,

    I want to have a horizontal blinking cursor on the QLineEdit instead of the vertical one.
    Does someone have an idea how to achieve this?

    Many Thanks in advance

    Regards

    1 Reply Last reply
    0
    • m.sueM Offline
      m.sueM Offline
      m.sue
      wrote on last edited by m.sue
      #2

      Hi,
      There was already a thread about it: https://forum.qt.io/topic/1137/change-qlineedit-text-cursor-shape
      -Michael.

      1 Reply Last reply
      4
      • A Offline
        A Offline
        Agossi
        wrote on last edited by
        #3

        As I can see the post you have attached, is just talkign about a bigger cursor but not changing to __ instead of |

        Many Thanks

        1 Reply Last reply
        0
        • m.sueM Offline
          m.sueM Offline
          m.sue
          wrote on last edited by
          #4

          Hi,
          sorry, my fault. For Q(Plain)TextEdit there is a function setTextCursor, but for a QLineEdit I could not find something similar. Maybe you can tweak QPlainTextEdit into something appropriate for your case.
          -Michael.

          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