mainwindow.h:73:error expected ';' before '*'
I need to create qgraphics in mdichild when I press on new button in the mainwindow
void MdiChild::newFile()
{
static int sequenceNumber = 1;
isUntitled = true;
curFile = tr("document%1.txt").arg(sequenceNumber++);
setWindowTitle(curFile + "[*]");
// connect(document(), SIGNAL(contentsChanged()),
// this, SLOT(documentWasModified()));
}
void MdiChild::newFile()
{
static int sequenceNumber = 1;
isUntitled = true;
curFile = tr("document%1.txt").arg(sequenceNumber++);
setWindowTitle(curFile + "[*]");
// connect(document(), SIGNAL(contentsChanged()),
// this, SLOT(documentWasModified()));
}
To copy to clipboard, switch view to plain text mode
so I wrote in constructor mdi::newfile
is that right?
Bookmarks