View Full Version : Tree structured text editor
corrado
20th April 2010, 10:09
Hi everyone,
I try to write a tree structured text editor based on QTreeView, but it appeared to be difficult, if even possible. Have anyone tried to do the same? Can you advice what to use for this purpose?
Regards
corrado
Lykurg
20th April 2010, 12:40
I haven't tried it but I would go for: Use a normal QTextEdit or QPaĺainTextEdit and emulate a tree beside (like the line number editor from the docs). On hiding a "node" just set the blocks of the document invisible etc. You can also have a look in the source code of Qt Creator and see how they make it.
corrado
20th April 2010, 14:17
I haven't tried it but I would go for: Use a normal QTextEdit or QPaĺainTextEdit and emulate a tree beside (like the line number editor from the docs). On hiding a "node" just set the blocks of the document invisible etc. You can also have a look in the source code of Qt Creator and see how they make it.
Thanks, i'm also looking at it, but i thought it might be something more suitable for such editor
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.