I saw many informations about QGroupBox but it was always inside different class or function. I would like to create a GroupBox directly inside my Gui window without creatin a new class or anything and I didn't find any solution. I need to keep my signals with the QCheckBox.
self.B_Bar1 = QtWidgets.QCheckBox("Barr1", self)
self.B_Bar1.move(1050, 150)
self.B_Bar2 = QtWidgets.QCheckBox("Barr2", self)
self.B_Bar2.move(1125, 150)
self.B_Bar3 = QtWidgets.QCheckBox("Barr3", self)
self.B_Bar3.move(1200, 150)
My QCheckBox are working well but I don't want the possibility to check these 3 box at the same time. I want only one checkable at the same moment and when I click to a new one, the previous one is unchecked.