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
Rather than passing through all the methods though, maybe we follow the same thing that complex qt widgets do (like QComboBox.lineedit https://doc.qt.io/qt-6/qcombobox.html#lineEdit) and add a method that returns the full widget like .spinBox() and/or .label()?
Not sure if setters would be appropriate, but maybe those too
Rather than passing through all the methods though, maybe we follow the same thing that complex qt widgets do (like QComboBox.lineedit https://doc.qt.io/qt-6/qcombobox.html#lineEdit) and add a method that returns the full widget like .spinBox() and/or .label()?
Yeah, that was my first thought, but like I mentioned with QLabeledDoubleRangeSlider, there are then two labels (and arguably we'd also want e.g. the suffix on the handles, too) - I think the extensibility required warrants passthrough...
Consider a slider wrapping a percentage value. If you want to add
%
as a suffix on the label, you have to access the private_label
field.Of course, for something like a
QLabeledDoubleRangeSlider
, there are 4 different labels that then have to be edited.I think it'd be great if the
QLabeledSlider
had the API for this.Happy to file a PR if people like the idea.
The text was updated successfully, but these errors were encountered: