Understanding class function declaration syntax

I'm a bit confused in regards to this syntax:

1
2
3
QSFMLCanvas::QSFMLCanvas(QWidget* Parent, const QPoint& Position, const QSize& Size, unsigned int FrameTime) :
QWidget       (Parent),
myInitialized (false)


Basically, I understand everything until the : after the arguments. I don't understand what QWidget(Parent),myInitialized(false) does. myInitialized is a member variable of the class. My code is, as some of you might tell, SFML and Qt, but this is default C++ syntax, so that really shouldn't matter.
This is called initializer list.
QWidget is probably the parent class of QSFMLCanvas. So it calls QWidget::QWidget(QWidget*) constructor, and sets myInitialized variable to false. Look up initializer list on google for more.
Topic archived. No new replies allowed.