Can anyone suggest me some code to jump to a specific line of a text edit widget. I have tried using blockNumber() function through QTextCursor but this returns only the current line where cursor is placed. I want to set the cursor to a specific line. Can someone help me in this?