I am currently using this code to connect them by name and it actually works, is this the supported way of doing so?
int main(int argc, char *argv[])
{
b.show();
// connect
b.connect(&b, "2clicked()", &app, "1quit()");
// disconnect
b.disconnect(&app, "1quit()");
return app.exec();
}
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton b;
b.show();
// connect
b.connect(&b, "2clicked()", &app, "1quit()");
// disconnect
b.disconnect(&app, "1quit()");
return app.exec();
}
To copy to clipboard, switch view to plain text mode
The reason I am doing this is because I want to be able to save/load actions using xml file.
Bookmarks