QT UI hslider initial value can't exceed 100

Report crashes, strange behaviour, or apparent bugs
Post Reply
javqui
Posts: 4
Joined: 24 Jul 2023, 15:25

QT UI hslider initial value can't exceed 100

Post by javqui »

CoppeliaSim Pro version 4.5.1 rev 4
Qt version 5.15.0 MSV2019
Build Apr 12 2023

If you set a large range over 100 (example minimum=0 and maximum=400), the parameter "value" doesn't work properly if it's >100
Image
screenshot link:https://drive.google.com/file/d/1V8Pq97 ... sp=sharing

Code: Select all

<group layout="grid">
	<label text="test1"/>
        <hslider tick-position="above" value="400" tick-interval="20" minimum="0" maximum="400" on-change="UIActuatorChange" id="2010"/><br/>
	<label text="test2"/>
        <hslider tick-position="above" value="200" tick-interval="20" minimum="0" maximum="400" on-change="UIActuatorChange" id="2011"/><br/>
	<label text="test3"/>
        <hslider tick-position="above" value="100" tick-interval="20" minimum="0" maximum="400" on-change="UIActuatorChange" id="2012"/><br/>
	<label text="test4"/>
        <hslider tick-position="above" value="50" tick-interval="20" minimum="0" maximum="400" on-change="UIActuatorChange" id="2013"/>
</group>

javqui
Posts: 4
Joined: 24 Jul 2023, 15:25

Re: QT UI hslider initial value can't exceed 100

Post by javqui »

just if somebody need it:
workaround
...activeUI=simUI.create(xml)

simUI.setSliderValue(activeUI,2010,400,true)
simUI.setSliderValue(activeUI,2011,200,true)

the other 2 values below or at 100 works directly in the initial "value" property declaration

coppelia
Site Admin
Posts: 10375
Joined: 14 Dec 2012, 00:25

Re: QT UI hslider initial value can't exceed 100

Post by coppelia »

Hello,

are you on macOS? We are able to reproduce that on macOS, but not on Windows. It appears to be a Qt related bug...

edit: sorry I was wrong, indeed the bug also affects Windows and probably Ubuntu too, but should be fixed in today's rev8 release

Cheers

Post Reply