R
R
RandomProgrammer2021-10-26 21:09:31
PyQt
RandomProgrammer, 2021-10-26 21:09:31

How to use QDialogButtonBox?

I did not find a sane example on the Internet.
Here's what I did, but I have an ok button on the parent widget at all, and no dialogs:

dialog = QtWidgets.QDialogButtonBox(self)
dialog.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Ok)
dialog.show()

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question