How to use QGroupBox instead of QButtonGroup

I am trying to figure out how to use the QGroupBox widget instead of the QButtonGroup widget, since qt docs (link below) "strongly advises against using it."

https://doc.qt.io/archives/qt-4.7/q3buttongroup.html

QButtonGroup had a convenient method called QtGui.QButtonGroup.checkedButton() , and I'm looking for a way to find the checked switch contained in the QGroupBox. What is the new best practice for this?

+6
source share
1 answer

QButtonGroup Still exists and is used, only its implementation has changed and is no longer widgets. In the qt design, the QButtonGroup is no longer in the widget menu, now you select the buttons you want to associate with the group and right-click to add the QButtonGroup.

+7
source

Source: https://habr.com/ru/post/923241/


All Articles