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 to find current line number in QTextEdit?
Forum Updated to NodeBB v4.3 + New Features

How to find current line number in QTextEdit?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 286 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.
  • L Offline
    L Offline
    LeroyNethan
    wrote on last edited by
    #1

    I need to get a position of a text pointer in QTextEdit which is calculated by the number of lines.
    In documents I can only see the textCthon () function. Position () counts it in characters.

    ODБOïO 1 Reply Last reply
    0
    • L LeroyNethan

      I need to get a position of a text pointer in QTextEdit which is calculated by the number of lines.
      In documents I can only see the textCthon () function. Position () counts it in characters.

      ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      @LeroyNethan hi
      https://forum.qt.io/topic/108009/how-to-find-current-line-number-in-qtextedit

      1 Reply Last reply
      6

      • Login

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