Hello everyone,
I am using QTextEdit in my application. I want to display the line number at the status bar or on a label below textedit box. How can i get the line number. I have searched through the documentation. They have provided a function to get the total number of lines, i haven't seen a function which will provide us the line number where there is a cursor.
For this i think there are two possibility:
1. To display the line number as we see in editing someproject.ui.h(at the statusbar)
2. To display the line number as in the kwrite(left side)
can anyone please tell me the solution to any one of the possibility. A code snippet is helpful
Bookmarks