I need to create a AgregarProyecto
method, which allows you to add a new project to a list.
My problem is this: When wanting to make an instance of class proyecto
, which receives 3 arguments, I get the following error:
error: conversion from 'project *' to non-scalar type 'project' requested project a Project = new project (name, description, directory);
The method is as follows:
void MainWindow::agregarProyecto(QString nombre, QString descripcion, QString directorio)'{'
proyecto unProyecto = new proyecto (nombre,descripcion,directorio);
this->listaProyectos.append(unProyecto);
}