Should the name of my classes begin with 'Q' in Qt?

Posted by Venemo on Stack Overflow See other posts from Stack Overflow or by Venemo
Published on 2010-05-27T14:17:39Z Indexed on 2010/05/27 14:31 UTC
Read the original article Hit count: 181

Filed under:
|
|
|

Hello Everyone,

When I first started working with Qt, it was extremely annoying that every class has a name beginning with 'Q', but now I've got used to it.

I'm using Qt Creator, and it highlights code quite well.
However, it only highlights class names beginning with 'Q'. And it highlights everything beginning with 'Q' even if there is no such type.
It doesn't highlight custom class names.

That makes me wonder, should I also begin all my class names with 'Q'?
Or at least the reusable ones?
(I mean, those that I put in a class library, or reuse in another app.)

I've seen several places where they named their classes this way. Is it a good thing?

I found this page about Qt's naming conventions, but it doesn't deal with this question.

Also, I don't understand why Qt doesn't use namespaces.

© Stack Overflow or respective owner

Related posts about c++

Related posts about qt