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

Adding Image in a dialog

$
0
0

So what I did is I used Dialog Design to create a dialog and added a label as a placeholder for the image. So apparently with the Piximage, I get a error that says "QFileInfo::absolutePath: Constructed with empty filename". 

here's the code

var label = new DzLabel( Dialog );
label.setGeometry( 200, 60, 46, 13 );
var sPath = new DzFileInfo(getScriptFileName()).path();
var filepath = sPath + "\\aero_header.png";
var pixImage = new Pixmap(filepath);
label.pixmap = pixImage;

What did I do wrong??


Viewing all articles
Browse latest Browse all 1067

Trending Articles



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