Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to add blinking cursor when add text in QLineEdit ?
Forum Updated to NodeBB v4.3 + New Features

How to add blinking cursor when add text in QLineEdit ?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 2 Posters 580 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 Online
      JonBJ Online
      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 Extensions
      • Unsolved