PDA

View Full Version : How to use CompleteThis keyboard shortcuts continuely



lookeroo
14th June 2012, 15:28
Hi , I am a new to QT , now I have encountered a problem when use Qt creator.

when I editing a C++ file, I usually use the "CompleteThis" shortcuts to auto complete codes, it is very convenient,

But the function can not use continually, for example ui->txt1->document()->setHtml("aaaaaaa");
txt1 is a QTextEdit*. when I type "." after ui it will change to "->" automatically and the autocomplete code will show:7858
but after "txt1" I type "." there is nothing promoted,

What should I do ? Thanks

wysota
14th June 2012, 15:43
Did you remember to #include <QTextEdit> or whatever txt1 is?

lookeroo
15th June 2012, 03:17
Thanks wysota, I have include QTextEdit