mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
chceckbox widget has spacer at the end
This commit is contained in:
parent
03470eb75d
commit
7794f5a20d
1 changed files with 6 additions and 1 deletions
|
|
@ -282,7 +282,12 @@ class BooleanWidget(QtWidgets.QWidget, InputObject):
|
|||
self.label_widget = label_widget
|
||||
|
||||
self.checkbox = QtWidgets.QCheckBox(self)
|
||||
layout.addWidget(self.checkbox, 1)
|
||||
spacer = QtWidgets.QWidget(self)
|
||||
layout.addWidget(self.checkbox, 0)
|
||||
layout.addWidget(spacer, 1)
|
||||
|
||||
spacer.setAttribute(QtCore.Qt.WA_TranslucentBackground)
|
||||
|
||||
self.setFocusProxy(self.checkbox)
|
||||
|
||||
self.checkbox.stateChanged.connect(self._on_value_change)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue