Код: Выделить всё
...
private slots:
bool connecting(bool asServer = false);
private:
...
QAction *aConnectClient;
QAction *aConnectServer;
...дальше при инициализации окна
Код: Выделить всё
aConnectServer = new QAction(tr("Start as &Server"), this);
aConnectServer->setStatusTip(tr("Start in server mode"));
connect(aConnectServer, SIGNAL(triggered()), this, SLOT(connecting(true)));
aConnectClient = new QAction(tr("Start as &Client"), this);
aConnectClient->setStatusTip(tr("Start in client mode"));
connect(aConnectClient, SIGNAL(triggered()), this, SLOT(connecting()));компилирую. все ок.
запускаю. запускается но в консоль выдает:
Object::connect: No such slot VMainWindow::connecting(bool asServer=true)
Разъясните, пожалуйста, ситуацию. Почему так и как ее решить.