deriving abstract classes from qt concrete classes
i need to define interfaces for the application. these interfaces must work with widgets such as tree view, table view, etc. i wanna know how logical it is to derive classes from qt concrete classes (e.g.
QTreeView) and make that class abstract?
What exact interface do you want to add ?
Can you explain the context for creating such an abstract class ?
I think you have to explain in more detail the requirements as
QTreeView already derive from the abstract class
So it would seem odd to abstract the concrete class implementation. (imo) :)
update: too slow ;)
i need, for example, a
populate()method which will populate the top level of the tree.
Then the question is: is it a class that you will provide through a library ?
In any case, nothing stops you from creating an abstract subclass with that method as pure virtual.
yeah it is going to be some kind of library, and that's why i need to make the abstractions...
Then, as the logo says: Just do it :-)