• a016b739224f8a322d46693af425ef10ee8ad018

      In the following example in http://doc.qt.nokia.com/latest/gettingstartedqt.html:

      Notepad::Notepad()
      {
      saveAction = new QAction(tr("&Open"), this);
      saveAction = new QAction(tr("&Save"), this);
      exitAction = new QAction(tr("E&xit"), this);

      connect(openAction, SIGNAL(triggered()), this, SLOT(open()));
      connect(saveAction, SIGNAL(triggered()), this, SLOT(save()));
      connect(exitAction, SIGNAL(triggered()), qApp, SLOT(quit()));

      fileMenu = menuBar()->addMenu(tr("&File"));
      fileMenu->addAction(openAction);
      fileMenu->addAction(saveAction);
      fileMenu->addSeparator();
      fileMenu->addAction(exitAction);

      textEdit = new QTextEdit;
      setCentralWidget(textEdit);

      setWindowTitle(tr("Notepad"));
      }

      I think the "saveAction = new QAction(tr("&Open"), this);" should be "openAction"

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            boddie David Boddie (Inactive)
            szh Zhonghua SHENG
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes