Reputation: 103
I'm learning qt framework for c++ and I'm not able to understand what this statement does:
Window::Window (QWidget *parent) : QWidget(parent) { .... }
// (QWidget *parent) : QWidget(parent) <---
Upvotes: 0
Views: 40
Reputation: 4522
This statement means calling base class constructor. In your context it is widget class. It is base class for window. Actually parent widget will be passed to this constructor
Upvotes: 1