-
Notifications
You must be signed in to change notification settings - Fork 0
dpconfig widgets
Bee edited this page Apr 18, 2025
·
28 revisions
All text can be formatted in HTML. To know more about what's acceptable and not, see Qt's documentation page.
Shows text.
-
text: Text to show. May be formatted in HTML. Required.
Essentially the same as type text, but a different size.
-
text: Text to show. May be formatted in HTML. Required.
⚠ Titles and headings have different sizes! Title is the largest one, heading is smaller.
Renders a picture.
-
file: Local path (in the archive) to the image. Required. -
width: Scale the image to this width, in pixels. -
height: Scale the image to this height, in pixels.
wip
-
textstring: The option description. Required. -
methodstring: The method to insert the input into. Required. -
valueobject: Describes the value to accept as input. Required.-
typestring: Eitherint,percentorfloat.percentconverts into float on export, but renders differently. Required. -
defaultn: The default value. -
rangelist: The range of acceptable values. A list of two options, the minimum and maximum, in that order. Both are inclusive. -
stepn: The amount to add/subtract when the up/down arrow is pressed. Does not affect what the user can type in manually. -
suffixstring: The suffix to add at the end of the number. Purely visual. Percentages use %, but this can be overwritten.
-
Example:
{
"type": "number",
"text": "This is a value edit! It supports percentages, integers and floats.",
"value": {
"type": "float",
"default": 1,
"range": [
0.25,
3
],
"step": 0.05,
"suffix": "x"
},
"method": "continent_scale"
},