[Qt-creator] Changes to autocomplete in 2.6 (problems with shared_ptr)

Robert Löhning robert.loehning at digia.com
Fri Oct 5 17:02:01 CEST 2012

Am 05.10.2012 13:55, schrieb Rob Pieke:
> New to the list, so sorry if this has been mentioned/asked before.
> I've got some code like this:
> namespace BlahNS { using boost::shared_ptr; }
> void blah() {
>      BlahNS::shared_ptr<MyBlah> blahPtr;
>      blahPtr->...
> At this point, QtCreator2.5 pops up the auto-complete, but 2.6 doesn't.
> If I use boost::shared_ptr, then the 2.5/2.6 behaviour is the same (i.e., I get auto-complete in both cases).
> If I use the "." operator instead of "->", I get auto-completion for the pointer (not the object) as expected, for both 2.5/2.6.
> It'd be awesome not to lose the 2.5 behaviour of being able to autocomplete BlahNS::sharedPtr<>-> :)
> Cheers!
> - Rob

Hi Rob,

sounds like https://bugreports.qt-project.org/browse/QTCREATORBUG-629
If this describes your problem, you can vote for the report.


Robert Löhning
Software Engineer
Digia, Qt

Digia Germany GmbH
Rudower Chausse 13, 12489 D-Berlin
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht 
Charlottenburg, HRB 144331 B,
Geschäftsführer: Mika Pälsi, Juha Varelius, Anja Wasenius
Email: robert.loehning at digia.com
Mobile: +49 151 1634 9248
Tel: +49 30 63 92 32 55
Qt Blog: http://blog.qt.digia.com/
Qt Facebook: www.facebook.com/qt
Qt Twitter: www.twitter.com/qtcommercial

Digia Germany is a group company of Digia Plc,
Valimotie 21, FI-00380 Helsinki Finland
Visit us at: www.digia.com
This message and any attachments are intended only for use by the named 
addressee and may contain privileged and/or confidential information. If 
you are not the named addressee you should not disseminate, copy or take 
any action in reliance on it. If you have received this message in 
error, please contact the sender immediately and delete the message and 
any attachments accompanying it. Digia Germany GmbH and Digia Plc do not 
accept liability for any corruption, interception, amendment, tampering 
or viruses occurring to this message.

More information about the Qt-creator mailing list