Work with C and a little assembly on Atmel AVR microcontrollers. I'm trying to understand how the framework extends C ++.
I created a new project with Qt Creator (Widgets), and generated the following code:
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent), //<-- qual a relação do ponteiro acima e o parâmetro passado aqui?
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
[1] What is happening on the first line after the :
operator? Is it some kind of inheritance? to my look it seems like a type of initialization, could there be this after the :
? operator
[2] In constructing the object in the _main.cpp_
file, where are the constructor arguments?
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w; //<-- Onde estão os argumentos?
w.show();
return a.exec();
}
If it can be explained, in a slightly more complete way, I thank you.