I'm sure I should know this, but I can't remember and can't find the answer. I'm well used to Java and Perl, which, of course, have quite a different syntax than C++. I'm embarrassed that I have to ask this.
I'm reading a tutorial on using QT from C++ (here: Qt4 tutorial), and I see this in almost every example. Here's some code:
Code:
Absolute::Absolute(QWidget *parent) : QWidget(parent)
{
QTextEdit *edit = new QTextEdit(this);
edit->setGeometry(5, 5, 200, 150);
}
I know about classes and the double colon, but after that, what is the single colon and the text after that? (": QWidget(parent)")
(I'm not asking about QT at all - just the notation and the purpose.)