OK this is what I have so far:
I decided to create a test application.
I created a QButtonGroup encompassing 4 checkboxes:
Code:
buttonGroup->setExclusive(0);
buttonGroup->addButton(checkBox_1, 1);
buttonGroup->addButton(checkBox_2, 2);
buttonGroup->addButton(checkBox_3, 3);
buttonGroup->addButton(checkBox_4, 4);
I also created a "reset" button to call a "reset()" function:
Code:
void Window::reset()
{
for (int i = 1; i < 5; i++)
buttonGroup.button(i)->setCheckState(0);
}
When I compile I get:
window.cpp: In member function ‘void Window::reset()’:
window.cpp:48: error: request for member ‘button’ in ‘((Window*)this)->Window::buttonGroup’, which is of non-class type ‘QButtonGroup*’
Any Thoughts?
Thanks