[Qt-creator] Required conventions (was: Documentation for plugin development)

Daniel Teske daniel.teske at digia.com
Tue Nov 26 11:50:38 CET 2013


On Tuesday 26 November 2013 10:43:24 Mateusz Loskot wrote:
> On 26 November 2013 10:10, Tobias Hunger <tobias.hunger at digia.com> wrote:
> > * Please make sure to follow the coding style.
> > http://doc-snapshot.qt-project.org/qtcreator-extending/coding-style.html
> > has the details.
> > (...)
> > There usually are lots of misplaced * and & chars in newly
> > submitted code, too.
> 
> Or, one day, Qt will drop its C with classes heritage
> and allow folks to apply C++ semantic and emphasize actual type
> instead of syntax of declaration as C folks do.
That isn't the reason. The reason is that it makes the * or & stand out more. 
Humans pay more attention to the first character of a word thatn to the last 
one. So putting the *, & in front of a word instead at the end increases 
readability. Since the qt coding style strongly advises against putting 
multiple variable declarations on one line, there's also no draw back to that.

daniel



More information about the Qt-creator mailing list