[solved]What is tool class?
-
I was reading "Qt Coding Conventions":http://qt-project.org/wiki/Coding-Conventions
and one thing confused me- Things to avoid:
Do not inherit from template/tool classes
What is tool class?
------------------------------------------
Answer is "here":http://doc.qt.digia.com/qt/examples-tools.html :
[quote]Qt is equipped with a range of capable tool classes, from containers and iterators to classes for string handling and manipulation.
Other classes provide application infrastructure support, handling plugin loading and managing configuration files.[/quote] - Things to avoid:
-
Hello.
I guess tool classes are QString, QVector and other containers, probably some other - classes, that are ready to use without any kind of extensions. -
There is a rule of thumb: if it has a non-virtual destructor, don't inherit from it.
-
[quote author="Lukas Geyer" date="1357403536"]There is a rule of thumb: if it has a non-virtual destructor, don't inherit from it.[/quote]
Of course it's in most cases it is very bad idea to inherit from class with non-virtual desctructor but question isn't about that. It's about term tool class