문제

I've working on a small SQL IDE App which is a neat tool for writing SQL procedure for Oracle & DB2. I'm using Qt 4 as the GUI base. Still I want to add instant grammar check function for My SQL IDE, it will write a wave line under the SQL code with grammar error,just like the VS2010 and eclipse. But I really don't know how to deal with this function. I've using the QPlainTextEdit for the document edit class. I'd appreciate if you can give some tips and hints! Thank you for your time!

도움이 되었습니까?

해결책

Take a look at QSyntaxHighlighter. It consists of code example on how to use it. Also QPlainTextEdit has chapter Using QPlainTextEdit as an Editor. Another thing that may become useful for you is Syntax Highlighter Example

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top