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

How to use an UI Dialog created by Qt Designer

$
0
0

Hi @all,

I want to use Qt-Designer, which is part of DAZ-Studio, but unfortunately I'm not able to show the dialog-widget. Please see this simple code fragment:

var loader = new DzUiLoader();
var dialog = new DzDialog();
var wgt    = loader.load("X:/.../test.ui", dialog);
dialog.exec();

This shows an empty dialog.

The second way I've found is:

var popup = new DzUIPopUpWgt(dialog);

brings the exception:  TypeError: no constructor for DzUIPopUpWgt

Altough a constructor is documented: http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/uipopupwgt_dz

 

Can anyone help me with a little piece of code please ;-)

 


Viewing all articles
Browse latest Browse all 1036

Trending Articles



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