I'm using Linux Mint 17.1 64bit on a newer computer. I am doing an tabWidget app with one of the tabs being the appointments tab. I need the current date in a label. Here it is

void mainForm:n_mainTW_currentChanged(int index)
{
if(ui->mainTW->currentIndex() == 1)
{
QString mdy;
QDate::toString("MM dd yyyy") *mdy;
ui->dateLbl->text(mdy);
}
}
Can anyone help me to get this to work with explanation what I did wrong?

MM