Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1036

Analogue of QT Spin Box and Double in DAZ script?

$
0
0

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 files
var Spinbox = dialog.findChildOfWidget("Spinbox");
connect (Spinbox, "valueChanged(int)"  , myFunction1)// bind with action

var DoubleSpinbox = dialog.findChildOfWidget("DoubleSpinbox");
connect (DoubleSpinbox, "valueChanged(double)"  , myFunction2) // bind with action

dialog.exec()

 

 


Viewing all articles
Browse latest Browse all 1036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>