Hi, On May 29, 2014, at 2:33 AM, Nikolai Kosjar <[email protected]> wrote:
> On Wed, 28. May 17:12, Vitali Baumtrok wrote: >> is there a possibility to set the QTextDocument in BaseTextEditorWidget >> of the TextEditor plugin? > > Not supported (yet). > > I'm interested in that, too. The in-memory-ui-file-processor could > work on such a set QTextDocument. Changes to such a document would > then be immediately reflected in the editor. Setting the text document is not supported, and actually it is not even supported to perform *any* operation on the QTextDocument directly either. E.g. setting text editor contents is only supported through IDocument::setContents / BaseTextEditor::setPlainText. We simply have to keep too much separate information in sync (like the revisions), so I’m not even sure it would be possible, but in any case it would be a big effort with many opportunities for bugs ;) Br, Eike -- Eike Ziller, Senior Software Engineer - Digia, Qt Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/qt-creator
