[PyKDE] big Text in pyqt

Sundance sundance at ierne.eu.org
Thu Oct 7 11:45:49 BST 2004


I heard Axel Mittendorf said:

> Hi, what is the most efficient way to display a big text in a pyqt
> app?

Did you try to set the QTextEdit widget in LogText mode?

  t=QTextEdit()
  t.setTextFormat(QTextEdit.LogText)

You may also want to turn undo/redo off:
  t.setUndoRedoEnabled(False)

How much better is the memory consumption with this?

-- S.




More information about the PyQt mailing list