Q
Q
Qfaz122021-11-30 22:01:04
QML
Qfaz12, 2021-11-30 22:01:04

How can I use QtQuickControls 1.4 to take advantage of the ExclusiveGroup, given that I have QtQuickControls 2.12?

How can I use QtQuickControls 1.4 to take advantage of the ExclusiveGroup, given that I have QtQuickControls 2.12 and need it since I have a ScrollView, TabBar, etc.?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacob E, 2021-12-02
@Zifix

Read the documentation, it will save you a huge amount of time. You don't really need those crutches with ExclusiveGroup, it won't work with the new radio buttons anyway:

Radio buttons are auto-exclusive by default. only one button can be checked at any time among radio buttons that belong to the same parent item; checking another button automatically unchecks the previously checked one. For radio buttons that do not share a common parent, ButtonGroup can be used to manage exclusivity.

https://doc.qt.io/qt-5/qml-qtquick-controls2-radio...
https://doc.qt.io/qt-5/qml-qtquick-controls2-butto...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question