Results 1 to 2 of 2

Thread: QSyntaxHighlighter setting color phisically to document

  1. #1
    Join Date
    Aug 2006
    Posts
    77
    Thanks
    14
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QSyntaxHighlighter setting color phisically to document

    Hi!

    I found out that the synthaxhighlighter is not changing the color of the document phisically
    and i cannot access these colors from the doc. When i set the color via :
    Qt Code:
    1. textEdit->mergeCurrentCharFormat(format);
    To copy to clipboard, switch view to plain text mode 

    and i have the highlighter applied the display color in the editor is not changed, but
    in the doc on that location the color is stored, so when i use this color in print preview
    it is visible. The problem is that i want to use the colors from the highlighter, but these colors are not stored into the document. Does anybody have a solution for my problem?

    I am looking forward for your help.

    Thank you.

  2. #2
    Join Date
    Aug 2006
    Posts
    77
    Thanks
    14
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QSyntaxHighlighter setting color phisically to document

    I have found out that this is a bug:

    http://www.trolltech.com/developer/t...ntry&id=134940

    If anyone knows how to go around this bug and get to the colors, i would very appreciate
    your help.

    Thanks.

Bookmarks

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.