Hi Baz Walter,<div><br></div><div>thanks a lot for your answer.</div><div><br></div><div>I solved this problem.  This is my code:</div><div> </div><div><div>/* Ctrl + Space == Autocomplete */</div><div>QShortcut shortcut_ctrl_space = new QShortcut(QKeySequence("Ctrl+Space"), this);</div>

<div>connect(shortcut_ctrl_space, SIGNAL(activated()), this, SLOT(autoCompleteFromAll()));</div><div><br></div><div class="gmail_quote">On Wed, Dec 15, 2010 at 10:15 PM, Baz Walter <span dir="ltr"><<a href="mailto:bazwal@ftml.net">bazwal@ftml.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 14/12/10 16:06, Roberto Gerson wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi everyone,<br>
<br>
I'm new using QScintilla and I already have the most recent source code<br>
compiled and working.<br>
<br>
Well, I'm creating  a Text Editor for NCL (<a href="http://www.ncl.org.br" target="_blank">http://www.ncl.org.br</a>) and I want<br>
to use autocomplete features. I already can autocomplete some words when I<br>
start to write them. Additionally, I would like to use Ctrl+Space to enable<br>
autocomplete. But I have no idea how to do this. Today, when I press Ctrl +<br>
Space, QScintilla add "NULL" to my text.<br>
<br>
Does Anyone know how to to this ?<br>
</blockquote>
<br></div>
QScintilla has no default key binding for ctrl+space, so it will output whatever text (if any) is associated with that key combination - which on your platform happens to be the control character NUL.<br>
<br>
to associate a different behaviour with that key combination, you could simply create a QShortcut for it and connect it to an appropriate signal handler.<br>
<br>
to invoke auto-completion, use one of QScintilla's autoCompleteFrom* methods.<br>
</blockquote></div><br><br clear="all"><br>-- <br>sds/<br>Roberto Gerson de Albuquerque Azevedo (<a href="http://laws.deinf.ufma.br/~roberto" target="_blank">http://laws.deinf.ufma.br/~roberto</a>)<br>----------<br>Mestre em Informática - Puc-Rio<br>

Pesquisador - Laboratório Telemídia (<a href="http://www.telemidia.puc-rio.br" target="_blank">http://www.telemidia.puc-rio.br</a>)<br><br>Bacharel em Ciência da Computação - UFMA<br>Pesquisador - Laws - Laboratory of Advanced Web Systems - UFMA (<a href="http://laws.deinf.ufma.br" target="_blank">http://laws.deinf.ufma.br</a>)<br>

----------<br>Clube NCL: A liberdade de desenvolver e compartilhar conteúdo interativo!<br>Visite: <a href="http://clube.ncl.org.br" target="_blank">http://clube.ncl.org.br</a><br>
</div>