Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the rationale behind the Qt way of naming classes?

I am wondering why Qt uses Q before every class name rather than putting everything in a namespace. Is there any particular reason, such as making the names easy to search for, or is it just about brand names?

like image 830
yesraaj Avatar asked Aug 28 '09 10:08

yesraaj


1 Answers

I believe it is historical. Namespaces were introduced into C++ around 1995. Qt development started in 1991 so namespaces could not be used, obviously.

like image 161
Rafał Dowgird Avatar answered Sep 24 '22 13:09

Rafał Dowgird