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 582 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 11 Aug 2021, 07:08 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 ?

    J 1 Reply Last reply 11 Aug 2021, 07:17
    0
    • Q Qt embedded developer
      11 Aug 2021, 07:08

      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 ?

      J Offline
      J Offline
      JonB
      wrote on 11 Aug 2021, 07:17 last edited by JonB 8 Nov 2021, 07:18
      #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

      1/2

      11 Aug 2021, 07:08

      • Login

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