[QScintilla] Autocompletion
Henk Nep
henknep4 at gmail.com
Thu Aug 20 20:29:53 BST 2015
Hi All,
I have added autocompletion which seems to be working fine except for a
few niggles. If I type in one of the keywords followed by an opening
bracket then nothing happens, however, if I delete the bracket and
retype it again the autocompletion kicks in. Similarly, if I type in a
few characters followed by hitting the TAB key then autocompletion works
fine. Is this a known issues?
I also noticed that the autocompletion window is always about 10 lines
deep even if only 1 keyword is offered, is there a setting to reduce the
window size?
QsciLexerCPP *lexer = new QsciLexerCPP();
lexer->setFoldComments(true);
textEdit->setAutoCompletionSource(QsciScintilla::AcsAPIs);
textEdit->setAutoCompletionThreshold(3);
textEdit->setAutoCompletionUseSingle(QsciScintilla::AcusNever);
api = new QsciAPIs(lexer);
api->load("C:/c.api");
api->prepare();
textEdit->setLexer(lexer);
Win7-64, QT 5.4.2, QScintilla 2.9.1
Thanks.
More information about the QScintilla
mailing list