Subclassing QTableView - Pure Virtual / Virtual
-
I'm a complete idiot but ... question. When subclassing... how do I know which methods need to be reimplemented... just the pure virtual methods or all virtual methods? I just wanted to have a sure-fire way of figuring out what will and won't work with just base constructor... I know you can view the qt source code and the classes via the website but I digress.
Thanks in advance!
-
I'm a complete idiot but ... question. When subclassing... how do I know which methods need to be reimplemented... just the pure virtual methods or all virtual methods? I just wanted to have a sure-fire way of figuring out what will and won't work with just base constructor... I know you can view the qt source code and the classes via the website but I digress.
Thanks in advance!
@JahJerMar
pure virtual method for sure, otherwise you will encounter compiler errors anyway.
virtual methods are meant to be overridden (if necessary). This mostly enables extending of the base functionality, but depends on the specific function. -
I'm a complete idiot but ... question. When subclassing... how do I know which methods need to be reimplemented... just the pure virtual methods or all virtual methods? I just wanted to have a sure-fire way of figuring out what will and won't work with just base constructor... I know you can view the qt source code and the classes via the website but I digress.
Thanks in advance!
@JahJerMar said in Subclassing QTableView - Pure Virtual / Virtual:
what will and won't work with just base constructor
If you inherit
public QTableView
your class will work with exactly the same functionality -
@JahJerMar said in Subclassing QTableView - Pure Virtual / Virtual:
what will and won't work with just base constructor
If you inherit
public QTableView
your class will work with exactly the same functionality@VRonin said in Subclassing QTableView - Pure Virtual / Virtual:
@JahJerMar said in Subclassing QTableView - Pure Virtual / Virtual:
what will and won't work with just base constructor
If you inherit
public QTableView
your class will work with exactly the same functionalityThat was exactly the answer to my question. Thanks I appreciate it!