I have created simple notepad from Qt/C++. I want to print the line number on status bar of QMainWindow
when I click somewhere on the text area, like notepad of Microsoft Windows
Qt simple note pad, print line number on status bar of QmainWindow
1.1k Views Asked by G.Wije At
3
You can connect the
cursorPositionChanged()
signal of your text area to a custom slot of yourQMainWindow
: