我正在学习如何使用Qt编写程序。我的问题是关于三件我不太擅长的事情:指针、对象和"new()“。
Look:(对话框是一个类)
//start of code...
...
private:
Dialog *mDialog; //Dialog is a class
...
void MainWindow::on_activationNew_window_triggered()
{
mDialog = new Dialog(this); // Explain me this "this"
}
...
//end of code
解释一下这行是