Close the widget when push the button
Solved
General and Desktop
-
I have a push button which name is Ok. I want to close the widget when i clicked on Ok button. I've written the code below but it doesnt work. How can i do it?
void uk_yapilandirma::on_Ok_toggled(bool checked) { if(checked == true) { ui->Ok->close(); } }
-
@suslucoder
I did it like this way, it worksvoid uk_yapilandirma::on_Ok_clicked() { this->close(); }
-
@suslucoder said in Close the widget when push the button:
want to close the widget when i clicked on Ok button.
What widget (do you want to close)?