you is not careful.
your connection is
QObject::connect(bChange,
SIGNAL(clicked
()), menus,
SLOT(setCurrentIndex
(3)));
QObject::connect(bChange, SIGNAL(clicked()), menus, SLOT(setCurrentIndex(3)));
To copy to clipboard, switch view to plain text mode
it's not correct, because passing real values in connection IS NOT allowed.
so, your connection must look like
QObject::connect(bChange,
SIGNAL(clicked
()), menus,
SLOT(setCurrentIndex
(int)));
QObject::connect(bChange, SIGNAL(clicked()), menus, SLOT(setCurrentIndex(int)));
To copy to clipboard, switch view to plain text mode
i.e. you should specify SIGNATURE of method.
Bookmarks