Results 1 to 1 of 1

Thread: QSyntaxHighlighter problem with highlighting opening and closing braces

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2013
    Qt products

    Default QSyntaxHighlighter problem with highlighting opening and closing braces

    I am trying to make highlighting the opening and closing braces in formula editor.
    suppose for example.
    ((a*b) +(a*c))
    if i select the first opening braces it should highlight the corresponding(last one ) closing braces.
    my problem is its highlighting for the first line correctly but for the second line if i am selecting its also showing for the previous line.
    i am attaching the screen shot of output as well as my code.
    i tried may thing but does not work.
    please advise something will be appreciated.

    Attached Images Attached Images
    Attached Files Attached Files

Similar Threads

  1. Replies: 4
    Last Post: 15th October 2012, 15:00
  2. Problem of highlighting text in QPlainTextEdit
    By topfortune in forum Qt Programming
    Replies: 5
    Last Post: 19th April 2012, 03:51
  3. Replies: 3
    Last Post: 12th March 2012, 16:10
  4. Highlighting substring problem
    By chandan in forum Newbie
    Replies: 1
    Last Post: 18th April 2010, 18:01
  5. Replies: 5
    Last Post: 10th May 2006, 01:20

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.