Vertical slider
YudinEd
Posts: 90
I don't understand how to do slider (to example enumslider) as vertical.
Please help me with code Thanks
You currently have no notifications.
I don't understand how to do slider (to example enumslider) as vertical.
Please help me with code Thanks
Licensing Agreement | Terms of Service | Privacy Policy | EULA
© 2024 Daz Productions Inc. All Rights Reserved.
Comments
I probably did not exactly give the name of the post. It should be called "how to make vertical widget?"
The documentation has for DzWidget
Enumerated orientation types
Enumerator:
In QT there is Horisontal and Vertical too.
I tried to use as DAZ script variables
I tried too as "vertical" - nothing. What to write instead of the word Vertical ?What am I doing wrong?
Vertical in your example is being taken as a variable name, with an uninitialised value. To tell the script that you are using the enumeration you need to give it as a member of DzWidget:
myVScrollbar.orientation = DzWidget.Vertical;
should work if the syntax is otherwise correct.
the Idea is good, but it is not working :(
Try
w.orientation = DzEnumSlider.Vertical;
or
w.orientation = w.Vertical;
Sorry, but there are no changes. I shall try another variants if I'll find :)
It's possible that scripting doesn't allow for vertically oriented sliders, I can't recall seeing one.
This is another variant - Slider from QT designer in UI format . Screenshot from DAZ. But I don't now how I can work with this QT slider using DAZ script functions
...
I took scrollbar instead of slider, because vertical slider displayed incorrectly in the DAZ.
I found the signals in the QT documentation - sliderReleased() and sliderPressed(), which work in the DAZ script normally. I am satisfied with such a variant
I add. You can use signal valueChanged(int). It's better - parameters change immediately. int - constant . You haven't change it.
Seems that some methods & properties are not exposed to scripting. We can't get/set:
- DzWidget::Orientation
- DzDynamicDividerWgt::ResizeType
Is this intentional ? Am I missing something ?
Thanks