I have been searching online to no avail. Does anyone know how to access a button in a button box (created using the “Dialog with Buttons Right” template)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Designer, select the
OKorCancelbutton. Then open the property editor and scroll down to theQDialogButtonBoxsection. You can then expand thestandardButtonsitem to see the various buttons that are available. Other properties, such as thecenterButtonsproperty, are also available.However, designer gives you very little control over the button box.
In code, you can do many other things, such as change the text that appears on the “standard buttons.” From the documentation:
As long as you give the button box a name in designer, you can set these properties in code.