[Solved] one problem with QDialogButtonBox
This is part of my code.
- ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);//buttonBox is a QDialogButtonBox widget I added in Qt //Creator's design mode
When I compiled,Qt Creator said that sentence is” error:invalid use of incomplete type ‘struct QPushButton’ “
I don’t know why and how to solve it.
Thank you for your attention.