if(QDialog::Accepted == fontDialog->exec())
This code checks if the font dialog returns QDialog::Accepted (which means the user clicked the "OK" button) when it is executed. If it does, then the code inside the if statement will be executed.
原文地址: https://www.cveoy.top/t/topic/uTc 著作权归作者所有。请勿转载和采集!