CodePudding user response:
Post your code and the build error message to hereCodePudding user response:
After many trials found using QDialogButtonBox must contain QtGui header file to compile successfully running, but I don't know why?CodePudding user response:
Dizzy, direct the include the name of the class, such as # include & lt; QDialogButtonBox>CodePudding user response:
To # include & lt; QtGui/QDialogButtonBox> , that contain is not directly, thank youCodePudding user response:
Need a # include in Qt6.0 & lt; QtWidgets> Because the setEnabled () method in QAbstractButton and QAbstractButton in & lt; QtWidgets> Not & lt; QtGui> In the