Does this work for you?
// main.cpp
#include <QtGui>
int main(int argc, char* argv[])
{
button1.setChecked(true);
button2.setChecked(false);
button1.show();
button2.show();
return app.exec();
}
// main.cpp
#include <QtGui>
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
QRadioButton button1("checked");
QRadioButton button2("unchecked");
button1.setChecked(true);
button2.setChecked(false);
button1.show();
button2.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Are you sure that the code where you change the check state gets actually executed?
Bookmarks