I want to write a simple QtCreator
program with the help of QtCreator
in C++
created an event that, when I clicked a button, should give it a true
property. This is my first experience with С++
and Qt
, please explain in detail what and how, I do not correctly and why this code does not work, because I choose an object and then try to assign it true
There is such code:
void MainWindow::on_poweButton_clicked() { QCheckBox powerCheck; powerCheck::setChecked(true); }