Noob question, I know, I'm still learning etc.
I've declared some objects in my mainwindow constructor but when I try to work with them in a slot they doesn't work
ui(new Ui::MainWindow)
{
ui->setupUi(this);
ledek led[3][9];
}
ui(new Ui::MainWindow)
{
ui->setupUi(this);
ledek led[3][9];
}
To copy to clipboard, switch view to plain text mode
void MainWindow::on_checkBox_1_stateChanged (int arg1)
{
for(asd=0;asd<3;asd++)
{
led[asd][1].szam=(arg1==0 ? 0:1)
}
}
void MainWindow::on_checkBox_1_stateChanged (int arg1)
{
for(asd=0;asd<3;asd++)
{
led[asd][1].szam=(arg1==0 ? 0:1)
}
}
To copy to clipboard, switch view to plain text mode
Led was not declared in this scope.
Bookmarks