mainwindow.cpp:341: error: no matching function for call to ‘Control::Control()’
control.h:46: note: candidates are: Control::Control(const QString&, QWidget*)
controlpanel.h:40: note: Control::Control(const Controll&a
Zuletzt geändert von AndiLatte am 8. Februar 2008 12:38, insgesamt 1-mal geändert.
Ich glaube Du solltest Dir erstmal ein C++ - Buch reinziehen...
Du hast aus einem Pointer auf control ein Objekt gemacht und wunderst Dich jetzt das das connect nicht mehr geht weil es pointer verlangt.
Christian81 hat geschrieben:Ich glaube Du solltest Dir erstmal ein C++ - Buch reinziehen...
Du hast aus einem Pointer auf control ein Objekt gemacht und wunderst Dich jetzt das das connect nicht mehr geht weil es pointer verlangt.
wie war das mit dem vor lauter bäumen den wald nicht sehen
QString text = "null";
Control *control = new Control(text);
openAct = new QAction(QIcon(":/data/buttons/folder-open.png"), tr("&Open Folder"), control);
openAct->setShortcut(tr("Ctrl+O"));
openAct->setStatusTip(tr("Open an existing folder"));
connect(openAct, SIGNAL(triggered()), control, SLOT(open()));