why do we subclass QWidget when we are creating a new class?
-
@majeed
You subclassQWidget
--- or perhaps some more specific widget derived fromQWidget
--- if you are designing a new class which will be/behave like a widget. So that you get widget behaviour & functionality.However, if your new class has nothing to do with widgets, you wouldn't subclass from
QWidget
.... -
@majeed Please read http://doc.qt.io/qt-5/objecttrees.html
-
@majeed Please read http://doc.qt.io/qt-5/objecttrees.html