Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [solved]What is tool class?
Forum Updated to NodeBB v4.3 + New Features

[solved]What is tool class?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    OLLO
    wrote on last edited by
    #1

    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]

    1 Reply Last reply
    0
    • W Offline
      W Offline
      Wilk
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lgeyer
        wrote on last edited by
        #3

        There is a rule of thumb: if it has a non-virtual destructor, don't inherit from it.

        1 Reply Last reply
        0
        • O Offline
          O Offline
          OLLO
          wrote on last edited by
          #4

          [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

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved