22 QMenu* pmnuFile =
new QMenu(
"&File");
23 QMenu* pmnuHelp =
new QMenu(
"&Help");
26 pmnuFile->addAction(
"&Open...",
29 QKeySequence(
"CTRL+O")
31 pmnuFile->addAction(
"&Save",
34 QKeySequence(
"CTRL+S")
36 pmnuFile->addAction(
"S&ave As...",
40 pmnuFile->addSeparator();
41 pmnuFile->addAction(
"&Quit",
44 QKeySequence(
"CTRL+Q")
46 pmnuHelp->addAction(
"&About",
52 menuBar()->addMenu(pmnuFile);
53 menuBar()->addMenu(pmnuHelp);
55 setCentralWidget(pdoc);
57 SIGNAL(changeWindowTitle(
const QString&)),
61 statusBar()->showMessage(
"Ready", 2000);
67 QMessageBox::about(
this,
"Application",
"SDI Example");
SDIProgram(QWidget *pwgt=0)
void slotChangeWindowTitle(const QString &str)