You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of the UISliderWidget restricts the addition of further widgets within the class itself (e.g. by adding and setting a layout).
The only available workaround that preserves inheritance involves passing other widgets to the class as an argument, and connecting the slider to the widgets (and vice versa) inside the class. Using this method, each widget can be added to the FormDialog, which preserves getting/setting widget states in the UIFormWidget class. However, this isn't ideal as it is limits the complexity of the widgets you can construct in the FormDialog (both in terms of functionality and layout). Adding widgets to the FormDialog using the addWidget() method only allows the user to add widgets vertically, with no support for horizontal widgets.
As a subclass of QSlider, adding the slider to a layout created within the class causes the window to crash (it is recursive, the slider contains the layout which contains the slider etc.).
The current implementation of the
UISliderWidget
restricts the addition of further widgets within the class itself (e.g. by adding and setting a layout).The only available workaround that preserves inheritance involves passing other widgets to the class as an argument, and connecting the slider to the widgets (and vice versa) inside the class. Using this method, each widget can be added to the
FormDialog
, which preserves getting/setting widget states in theUIFormWidget
class. However, this isn't ideal as it is limits the complexity of the widgets you can construct in theFormDialog
(both in terms of functionality and layout). Adding widgets to theFormDialog
using theaddWidget()
method only allows the user to add widgets vertically, with no support for horizontal widgets.As a subclass of
QSlider
, adding the slider to a layout created within the class causes the window to crash (it is recursive, the slider contains the layout which contains the slider etc.).See also #125, #174, #175
The text was updated successfully, but these errors were encountered: