Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to add blinking cursor when add text in QLineEdit ?
Qt 6.12 LTS is out! See what's new in the release blog

How to add blinking cursor when add text in QLineEdit ?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 2 Posters 1.1k 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.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by
    #1

    i am adding text in QLineEdit . so when any text char add behind that i want to add blinking cursor.

    How i can add blinking cursor there ?

    JonBJ 1 Reply Last reply
    0
    • Q Qt embedded developer

      i am adding text in QLineEdit . so when any text char add behind that i want to add blinking cursor.

      How i can add blinking cursor there ?

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

      @Qt-embedded-developer
      If you really want a blinking cursor in a QLineEdit (bad idea, you should let it do whatever it does as-is on your platform) you would have to write the code yourself to achieve this.

      References:
      https://forum.qt.io/topic/105953/force-always-blinking-cursor-on-qlineedit
      https://stackoverflow.com/questions/56467940/how-to-display-a-blinking-cursor-in-qlineedit-during-read-only

      1 Reply Last reply
      4

      • Login

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