J
J
Julia2017-04-04 10:20:25
Qt
Julia, 2017-04-04 10:20:25

How to make a button in QT with two values?

Hi all.
Is there any ready-made solution for one solid button with two functions
like
______________________
| yes | no |
_____________________
Or is it possible to determine only by clicking the mouse?
Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Jacob E, 2017-04-04
@Zifix

There seems to be no finished one, but for logic there is doc.qt.io/qt-5/qbuttongroup.html

I
Ighor July, 2017-04-09
@IGHOR

If for dialogs with a request, that is, in QMessageBox
There you can set standard buttons, while the yes / no translation will be at the OS level.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question