How to create a slider with decimal min, max, and increments

What do you want to achieve?

I want a slider that can have decimal values. Right now, I can set slider min and max as integers only.
Is there some way to have the slider increment by 0.05? Or set the min to 0.01, max as 8.33, etc…

What have you tried so far?

Tried looking up how to do this, not sure if it’s actually possible.

Screenshot or video


  • SquareLine Studio version: v1.2.0
  • Operating system: Windows 11
  • Target hardware: WT32-SC01


Only integer values are supported now, but you can easily convert e.g. 123 to 1.23 like:

lv_label_set_text_fmt(label, "%d,%d", v / 100, v % 100);