I am a beginner, and I have a question about QMouseEvents. I am creating a CAD system on the Parasolid Kernel and I am trying to get my user interface to be able to draw a line using the kernel. I am using a QMouseEvent to feed in the coordinates, and I need two sets of coordinates, but I would like to have the function that is receiving the coordinates call a function that grabs them and I am wondering if this is possible. Here is my code:

void ParaConnectWidget::linedrawer()
{
mousePressEvent(QMouseEvent *)
mousePressEvent(QMouseEvent *)
}

void ParaConnectWidget::mousePressEvent(QMouseEvent *e)
{
//coordinates is a vector that will store the coordinates which will be passed into //another function that utilizes the coordinates to create the line using the kernel

coordinates.append(e->x());
coordinates.append(e->y());
}
I am getting C2059 error which means it isn't even reaching the first mousePressEvent call, so I am wondering if this is just an incorrect way to call the function?

Many thanks.