File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,6 @@ HelloQt::HelloQt(QWidget *parent) : QWidget(parent)
3939
4040HelloQt::~HelloQt ()
4141{
42- // Nothing to do here, the parent system makes sure that all the elements that
43- // are parented to this is cleaned up
4442}
4543
4644void HelloQt::writeToDebug (void )
Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ class HelloQt : public QWidget
55 Q_OBJECT;// Very Important, this is all the magic that is needed
66public:
77 explicit HelloQt (QWidget *parent = nullptr );
8- ~HelloQt ();
8+
9+ // No need for a destructor (~HelloQt) here, the parent system makes sure that all the elements that
10+ // are parented to this is cleaned up
11+
912private slots:
1013 void writeToDebug ();
1114};
You can’t perform that action at this time.
0 commit comments