Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to design a text editor in QT?

I want to design a text editor in QT and planning to implement the following basic features,

1) Basic editing features like cut,paste,formatting,indentation etc.

2) Auto completion based on the context.(Based on some xml input file)

3) Syntax highlighting ( based on some xml input file )

Can you please suggest some approaches for the overall architecture/design?

like image 566
RP. Avatar asked Jun 22 '10 05:06

RP.


2 Answers

How about:

  1. Application Example
  2. Completer Example or Custom Completer Example
  3. Syntax Highlighter Example

All this things are stored in one single place, in you Qt SDK examples

like image 148
mosg Avatar answered Sep 26 '22 10:09

mosg


This post is in 2015. NO DEAD LINKS

As @mosg mentioned.

In the menu bar. Go to Help > Index: and in the search field look for:

  1. Application Example
  2. Completer Example
  3. QSyntaxHighlighter

That would help you to begin.

like image 35
KHALID Avatar answered Sep 24 '22 10:09

KHALID