Analogue of QT Spin Box and Double in DAZ script?

YudinEdYudinEd Posts: 90

I can't find the analog of QT widgets Spin Box and Double Spinbox in DAZ script documentation.

Does anyone know this?

If you want to work with QT widgets (UI file), you can use the signals in DAZ script

for Spin Box (integers ) -   "valueChanged(int)"

for Double Spin Box  (not integers) - "valueChanged(double)"

You can try the signal - "editingFinished()"

I took the signals from QT documetation (tested).

Example 

var loader = new DzUiLoader();var dialog = new DzDialog();var dialogWgt = loader.load("C:/test.ui",dialog); // QT widgets from UI filesvar Spinbox = dialog.findChildOfWidget("Spinbox");connect (Spinbox, "valueChanged(int)"  , myFunction1)// bind with actionvar DoubleSpinbox = dialog.findChildOfWidget("DoubleSpinbox");connect (DoubleSpinbox, "valueChanged(double)"  , myFunction2) // bind with actiondialog.exec()

 

 

Post edited by YudinEd on
Sign In or Register to comment.