Hi everybody,
how can i set different margins for each QTextBlock in QTextEdit/QPlainTextEdit?
i tried to set it with following code:
class MyWidget(QPlainTextEdit):
def func(self):
block = self.firstVisibleBlock()
while block.isValid():
block = block.next()
block.blockFormat().setLeftMargin(<some_value>)
but it's not working
Thanks