I'm using a QPlainTextEdit control with word-wrapping active and I'm wondering how can I detect, in order to update a line counter, when a block of text gets wrapped (causing the number of lines to be incremented).
The underlying QTextDocument has a signal to detect when the block count changes, but not the corresponding one for line count changes.
Is it possible to detect word-wrapping and line count increase for a QTextDocument?