Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-72866

Many syntaxhiglighers for one QPlainTextEdit are needed in order to crate modular editors

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.12.0
    • GUI: Text handling
    • None
    • All

      There are huge difficulties when I try to program modular (plugin based) text editor with Qt library. The problem is when I want to have 2 syntax highlighters: one for code coloring and second for spell checking. I want to create 2 separate and independed plugins for this. But I fail shortly because you can call:
      QTextEdit *editor = new QTextEdit;
      MyHighlighter *highlighter = new MyHighlighter(editor->document());
      MySpellchecking* spelchecking = new MySpellchecking(editor->document());
      But only last syntax highlighter will be work.
      This is approach is opposite against modular programming.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            szykcech Szyk Cech
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes